Lines 2-51
Link Here
|
2 |
# $FreeBSD: head/graphics/apngasm/Makefile 336096 2013-12-10 19:39:46Z nemysis $ |
2 |
# $FreeBSD: head/graphics/apngasm/Makefile 336096 2013-12-10 19:39:46Z nemysis $ |
3 |
|
3 |
|
4 |
PORTNAME= apngasm |
4 |
PORTNAME= apngasm |
5 |
PORTVERSION= 2.7 |
5 |
PORTVERSION= 2.8 |
6 |
DISTVERSIONSUFFIX=-src |
6 |
DISTVERSIONSUFFIX=-src |
7 |
CATEGORIES= graphics |
7 |
CATEGORIES= graphics |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} |
|
|
9 |
EXTRACT_SUFX= .zip |
9 |
|
10 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
11 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Creates an APNG animation from a PNG/TGA image sequence |
12 |
COMMENT= Create Animated PNG from a sequence of files |
12 |
|
13 |
|
13 |
LICENSE= ZLIB |
14 |
LICENSE= ZLIB |
14 |
|
15 |
|
15 |
NO_WRKSUBDIR= yes |
16 |
OPTIONS_DEFINE= DOCS STATIC |
16 |
|
|
|
17 |
USE_DOS2UNIX= yes |
18 |
USE_ZIP= yes |
19 |
|
17 |
|
20 |
CPPFLAGS+= `libpng-config --I_opts` |
18 |
NO_WRKSUBDIR= yes |
21 |
LDFLAGS+= `libpng-config --ldflags` -lm -lz |
|
|
22 |
|
19 |
|
23 |
PLIST_FILES= bin/${PORTNAME} |
20 |
USES= dos2unix gmake |
24 |
|
21 |
|
25 |
PORTDOCS= readme.txt |
22 |
PORTDOCS= readme.txt |
|
|
23 |
PLIST_FILES= bin/${PORTNAME} |
26 |
|
24 |
|
27 |
OPTIONS_DEFINE= DOCS STATIC |
|
|
28 |
|
29 |
NO_STAGE= yes |
30 |
.include <bsd.port.options.mk> |
25 |
.include <bsd.port.options.mk> |
31 |
|
26 |
|
32 |
.if ${PORT_OPTIONS:MSTATIC} |
27 |
.if ${PORT_OPTIONS:MSTATIC} |
33 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png |
28 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png |
34 |
LDFLAGS+= -static |
29 |
MAKE_ENV+= STATIC=1 |
35 |
.else |
30 |
.else |
36 |
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png |
31 |
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png |
37 |
.endif |
32 |
.endif |
38 |
|
33 |
|
39 |
do-build: |
|
|
40 |
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${PORTNAME}.c \ |
41 |
-o ${PORTNAME} ${LDFLAGS} |
42 |
|
43 |
do-install: |
34 |
do-install: |
44 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
35 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \ |
45 |
|
36 |
${STAGEDIR}${PREFIX}/bin) |
46 |
.if ${PORT_OPTIONS:MDOCS} |
37 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
47 |
${MKDIR} ${DOCSDIR} |
38 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \ |
48 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
39 |
${STAGEDIR}${DOCSDIR}) |
49 |
.endif |
|
|
50 |
|
40 |
|
51 |
.include <bsd.port.mk> |
41 |
.include <bsd.port.mk> |