blob: 95f8830f6a6733eb22c21bb22fb533d1849814e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Created by: nemysis@gmx.ch
# $FreeBSD$
PORTNAME= apngdis
PORTVERSION= 2.5
DISTVERSIONSUFFIX=-src
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= nemysis@gmx.ch
COMMENT= Deconstructs APNG files into individual frames
LICENSE= ZLIB
NO_WRKSUBDIR= yes
USE_DOS2UNIX= yes
USE_ZIP= yes
LDFLAGS+= -lz
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= readme.txt
OPTIONS_DEFINE= DOCS STATIC
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSTATIC}
LDFLAGS+= -static
.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>
|