aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/apngasm/Makefile
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-06-20 12:52:27 +0800
committermiwi <miwi@FreeBSD.org>2010-06-20 12:52:27 +0800
commite5e8ef5f2dd9916c10ac63b11db90466b2510f5a (patch)
treedc196a2941b67c37d58cf9083da344d1dc205cc8 /graphics/apngasm/Makefile
parent426f8bd3ca3fbb68e2b83379355eb8232a5b6f6f (diff)
downloadfreebsd-ports-gnome-e5e8ef5f2dd9916c10ac63b11db90466b2510f5a.tar.gz
freebsd-ports-gnome-e5e8ef5f2dd9916c10ac63b11db90466b2510f5a.tar.zst
freebsd-ports-gnome-e5e8ef5f2dd9916c10ac63b11db90466b2510f5a.zip
- Update to 2.1
PR: 147771 Submitted by: Anonymous <swell.k@gmail.com> (maintainer) Feature safe: yes
Diffstat (limited to 'graphics/apngasm/Makefile')
-rw-r--r--graphics/apngasm/Makefile25
1 files changed, 19 insertions, 6 deletions
diff --git a/graphics/apngasm/Makefile b/graphics/apngasm/Makefile
index 6c663523395a..4448d55b47f1 100644
--- a/graphics/apngasm/Makefile
+++ b/graphics/apngasm/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= apngasm
-PORTVERSION= 2.0
+PORTVERSION= 2.1
DISTVERSIONSUFFIX=-src
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
@@ -14,19 +14,32 @@ MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= swell.k@gmail.com
COMMENT= Create Animated PNG from a sequence of files
-LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
-
USE_ZIP= yes
USE_DOS2UNIX= yes
NO_WRKSUBDIR= yes
+LICENSE= LGPL21 LGPL3
+LICENSE_COMB= dual
+
ALL_TARGET= ${PORTNAME}
MAKEFILE= /dev/null
-CFLAGS+= -I${LOCALBASE}/include -lpng -lz -L${LOCALBASE}/lib
+MAKE_ENV+= LDFLAGS="${LDFLAGS}" LDLIBS="${LDLIBS}"
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+LDLIBS+= -lpng -lm -lz
PLIST_FILES= bin/${PORTNAME}
+.include <bsd.port.pre.mk>
+
+.if !defined(NO_SHARED)
+LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
+.else
+BUILD_DEPENDS= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png
+LDFLAGS+= -static
+.endif
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>