View | Details | Raw Unified | Return to bug 184232
Collapse All | Expand All

(-)graphics/png2ico/Makefile (-13 / +18 lines)
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>
(-)graphics/png2ico/files/patch-Makefile (-11 lines)
Lines 1-11 Link Here
1
--- Makefile.orig	Mon Oct 17 13:19:41 2005
2
+++ Makefile	Mon Oct 17 13:21:09 2005
3
@@ -5,7 +5,7 @@
4
 all: png2ico
5
 
6
 png2ico: png2ico.cpp
7
-	g++ $(CPPFLAGS) $(DEBUG) -o $@ $< -lpng -lz -lm
8
+	$(CXX) $(CXXFLAGS) -I$(LOCALBASE)/include -L$(LOCALBASE)/lib -o $@ $< -lpng -lz -lm
9
 
10
 doc/png2ico.txt: doc/png2ico.1
11
 	man $< |sed  -e $$'s/.\b\\(.\\)/\\1/g' -e 's/\(.*\)/\1'$$'\r/' >$@
(-)graphics/png2ico/files/patch-png2ico.cpp (+10 lines)
Line 0 Link Here
1
--- png2ico.cpp.orig
2
+++ png2ico.cpp
3
@@ -33,6 +33,7 @@
4
 
5
 
6
 #include <cstdio>
7
+#include <cstdlib>
8
 #include <vector>
9
 #include <climits>
10

Return to bug 184232