freebsd-ports/graphics/apngasm/Makefile
Jason E. Hale c8cf966c2b - Update to 2.7 [1]
- Update COMMENT/LICENSE [1]
- Convert to new options framework [1]
- Pass maintainership to submitter [1]
- Trim Makefile header
- Fix STATIC option

PR:		ports/173206 [1]
Submitted by:	nemysis <nemysis@gmx.ch> [1]
Approved by:	makc, avilla (mentors, implicit)
Feature safe:	yes
2012-11-04 09:42:45 +00:00

50 lines
1,009 B
Makefile

# Created by: Anonymous <swell.k@gmail.com>
# $FreeBSD$
PORTNAME= apngasm
PORTVERSION= 2.7
DISTVERSIONSUFFIX=-src
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= nemysis@gmx.ch
COMMENT= Creates an APNG animation from a PNG/TGA image sequence
LICENSE= ZLIB
NO_WRKSUBDIR= yes
USE_DOS2UNIX= yes
USE_ZIP= yes
CPPFLAGS+= `libpng-config --I_opts`
LDFLAGS+= `libpng-config --ldflags` -lm -lz
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= readme.txt
OPTIONS_DEFINE= DOCS STATIC
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSTATIC}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png
LDFLAGS+= -static
.else
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
.endif
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${PORTNAME}.c \
-o ${PORTNAME} ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>