freebsd-ports/graphics/apngdis/Makefile

42 lines
869 B
Makefile

# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= apngdis
PORTVERSION= 2.6
DISTVERSIONSUFFIX=-src
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Deconstructs APNG files into individual frames
LICENSE= ZLIB
OPTIONS_DEFINE= DOCS STATIC
NO_WRKSUBDIR= yes
USE_ZIP= yes
USES= dos2unix gmake
LDFLAGS+= -lz
PORTDOCS= readme.txt
PLIST_FILES= bin/${PORTNAME}
STATIC_BUILD_DEPENDS= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png
STATIC_MAKE_ENV= STATIC=1
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MSTATIC}
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
.endif
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>