aboutsummaryrefslogtreecommitdiff
path: root/graphics/apngasm
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-01-28 20:24:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-01-28 20:24:54 +0000
commitdd669871c70d458461ecff636bb5a89ce4794fea (patch)
tree55a2698eddaf3138ee3c0d54d8e8413416586c3e /graphics/apngasm
parentda9089854d61fbd70e6e9f50f82064a0c4d67dfd (diff)
downloadports-dd669871c70d458461ecff636bb5a89ce4794fea.tar.gz
ports-dd669871c70d458461ecff636bb5a89ce4794fea.zip
Notes
Diffstat (limited to 'graphics/apngasm')
-rw-r--r--graphics/apngasm/Makefile28
-rw-r--r--graphics/apngasm/distinfo4
2 files changed, 19 insertions, 13 deletions
diff --git a/graphics/apngasm/Makefile b/graphics/apngasm/Makefile
index e715b4097d8d..2ec83d4bd2fb 100644
--- a/graphics/apngasm/Makefile
+++ b/graphics/apngasm/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= apngasm
-PORTVERSION= 2.3
+PORTVERSION= 2.5
DISTVERSIONSUFFIX=-src
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
@@ -14,20 +14,18 @@ MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Create Animated PNG from a sequence of files
-USE_ZIP= yes
-USE_DOS2UNIX= yes
-NO_WRKSUBDIR= yes
-
LICENSE= LGPL21 LGPL3
LICENSE_COMB= dual
-ALL_TARGET= ${PORTNAME}
-MAKEFILE= /dev/null
-MAKE_ENV+= LDLIBS="${LDLIBS}"
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-LDLIBS+= -lpng -lm -lz
+NO_WRKSUBDIR= yes
+USE_ZIP= yes
+USE_DOS2UNIX= yes
+
+CPPFLAGS+= `libpng-config --I_opts`
+LDFLAGS+= `libpng-config --ldflags`
+
+PORTDOCS= readme.txt
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.pre.mk>
@@ -39,7 +37,15 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png
LDFLAGS+= -static
.endif
+do-build:
+ cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${PORTNAME}.c \
+ -o ${PORTNAME} ${LDFLAGS}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
.include <bsd.port.post.mk>
diff --git a/graphics/apngasm/distinfo b/graphics/apngasm/distinfo
index a71fa6771a7a..7aac4b637408 100644
--- a/graphics/apngasm/distinfo
+++ b/graphics/apngasm/distinfo
@@ -1,2 +1,2 @@
-SHA256 (apngasm-2.3-src.zip) = d3f13ac5800f69f3fbcfc00800f7a985273c775a800a92e26841af31ad6ab5bf
-SIZE (apngasm-2.3-src.zip) = 10540
+SHA256 (apngasm-2.5-src.zip) = e5346948f2a51328161b3ef0d2c8111cd7289c7b4ac48e72db3a617cfb4f24c5
+SIZE (apngasm-2.5-src.zip) = 11333