aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--graphics/apngasm/Makefile25
-rw-r--r--graphics/apngasm/distinfo6
-rw-r--r--graphics/apngasm/files/patch-bswap13
3 files changed, 22 insertions, 22 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>
diff --git a/graphics/apngasm/distinfo b/graphics/apngasm/distinfo
index 7d5e340a3ec9..578069f58377 100644
--- a/graphics/apngasm/distinfo
+++ b/graphics/apngasm/distinfo
@@ -1,3 +1,3 @@
-MD5 (apngasm-2.0-src.zip) = eacbeb064219c6e7fe490abe788ab385
-SHA256 (apngasm-2.0-src.zip) = cc8c33c42115273dc63b7763f8c0b3ab5ec891420fb3ad794b44ade104118c19
-SIZE (apngasm-2.0-src.zip) = 6807
+MD5 (apngasm-2.1-src.zip) = df7c65ff207ab9d9cf0e236a01b723f6
+SHA256 (apngasm-2.1-src.zip) = ddfba3d932526bc58c84de8a27f9130609891ddf1e73be079c31952b6ed3c122
+SIZE (apngasm-2.1-src.zip) = 8363
diff --git a/graphics/apngasm/files/patch-bswap b/graphics/apngasm/files/patch-bswap
deleted file mode 100644
index 1b1ba20c2a4d..000000000000
--- a/graphics/apngasm/files/patch-bswap
+++ /dev/null
@@ -1,13 +0,0 @@
---- apngasm.c~
-+++ apngasm.c
-@@ -39,6 +39,10 @@ inline unsigned int swap32(unsigned int
- #include <byteswap.h>
- inline unsigned short swap16(unsigned short data) {return(bswap_16(data));}
- inline unsigned int swap32(unsigned int data) {return(bswap_32(data));}
-+#elif defined(__FreeBSD__)
-+#include <sys/endian.h>
-+inline unsigned short swap16(unsigned short data) {return(bswap16(data));}
-+inline unsigned int swap32(unsigned int data) {return(bswap32(data));}
- #else
- inline unsigned short swap16(unsigned short data) {return((data >> 8) | (data << 8));}
- inline unsigned int swap32(unsigned int data) {return((swap16(data) << 16) | swap16(data >> 16));}