Lines 13-36
Link Here
|
13 |
|
13 |
|
14 |
LICENSE= GPLv2 |
14 |
LICENSE= GPLv2 |
15 |
|
15 |
|
16 |
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png |
16 |
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png |
17 |
|
|
|
18 |
MAN1= png2ico.1 |
19 |
PLIST_FILES= bin/png2ico |
20 |
PORTDOCS= bmp.txt |
21 |
|
17 |
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
18 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
23 |
|
19 |
|
24 |
NO_STAGE= yes |
20 |
CPPFLAGS+= $$(libpng-config --cflags) |
|
|
21 |
LDFLAGS+= $$(libpng-config --ldflags) |
22 |
|
23 |
PORTDOCS= bmp.txt |
24 |
PLIST_FILES= bin/png2ico man/man1/png2ico.1.gz |
25 |
|
25 |
.include <bsd.port.options.mk> |
26 |
.include <bsd.port.options.mk> |
26 |
|
27 |
|
27 |
do-install: |
28 |
do-build: |
28 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
29 |
(cd ${WRKSRC} && ${CXX} ${CXXFLAGS} ${CPPFLAGS} -o png2ico \ |
29 |
${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1 |
30 |
png2ico.cpp ${LDFLAGS}) |
30 |
|
31 |
|
31 |
.if ${PORT_OPTIONS:MDOCS} |
32 |
do-install: |
32 |
@${MKDIR} ${DOCSDIR} |
33 |
(cd ${WRKSRC} && ${INSTALL_PROGRAM} png2ico \ |
33 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} |
34 |
${STAGEDIR}${PREFIX}/bin) |
34 |
.endif |
35 |
(cd ${WRKSRC}/doc && ${INSTALL_DATA} png2ico.1 \ |
|
|
36 |
${STAGEDIR}${MAN1PREFIX}/man/man1) |
37 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
38 |
(cd ${WRKSRC}/doc && ${INSTALL_DATA} bmp.txt \ |
39 |
${STAGEDIR}${DOCSDIR}) |
35 |
|
40 |
|
36 |
.include <bsd.port.mk> |
41 |
.include <bsd.port.mk> |