/
Makefile
63 lines (49 loc) · 1.97 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.2 2012/10/06 14:10:39 asau Exp $
#
CATEGORIES= graphics
MASTER_SITES= http://www.corel.com/akdlm/6763/downloads/AfterShotPro/1/PF/
EXTRACT_SUFX= .deb
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.corel.com/corel/product/index.jsp?pid=prod4670071
COMMENT= Photo management software
LICENSE= corel-license
RESTRICTED= Redistribution not permitted
NO_SRC_ON_CDROM=${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
USE_TOOLS+= pax tar
EMUL_PLATFORMS= linux-i386 # linux-x86_64
EMUL_MODULES.linux= drm fontconfig freetype2 glx gtk2 png x11
INSTALLATION_DIRS= bin libdata share/applications share/pixmaps
SUBST_CLASSES+= path
SUBST_SED.path+= -e "s,/opt/AfterShotPro,${PREFIX}/libdata/AfterShotPro,"
SUBST_SED.path+= -e "s,{LD_LIBRARY_PATH},{LD_LIBRARY_PATH}:${PREFIX}/emul/linux32/lib,"
SUBST_FILES.path+= usr/bin/AfterShotPro
SUBST_MESSAGE.path= Fixing path for pkgsrc.
SUBST_STAGE.path= post-build
.include "../../mk/bsd.prefs.mk"
DIST_SUBDIR= AfterShotPro-1.0
.if ${EMUL_PLATFORM} == "linux-i386"
DISTNAME= AfterShotPro_i386
PKGNAME= ${DISTNAME:S/_i386/-1.0/}
# same data.tar.gz, just different control.tar.gz
#.elif ${EMUL_PLATFORM} == "linux-x86_64"
#DISTNAME= AfterShotPro_amd64
#PKGNAME= ${DISTNAME:S/_amd64/-1.0/}
.else
BROKEN= Not supported for this emulation
.endif
do-extract: ${WRKDIR}
${RUN} cd ${WRKDIR} && ${AR} x ${_DISTDIR:Q}/${DISTNAME}${EXTRACT_SUFX} data.tar.gz
cd ${WRKSRC} && ${TAR} -xzpf data.tar.gz
do-build:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/AfterShotPro ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/usr/share/applications/AfterShotPro.desktop ${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/usr/share/pixmaps/AfterShotPro.png ${DESTDIR}${PREFIX}/share/pixmaps
cd ${WRKSRC}/opt && pax -pe -rw * ${DESTDIR}${PREFIX}/libdata
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"