aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-07 19:43:26 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-07 19:43:26 +0800
commit137e66f3e100e9b307f31b86e184802375ac0e00 (patch)
treea37a9d3d526e9c5b568b167081492fd68d68a128 /graphics
parent7c3eaafff4023a7403a954e34d0f9e8eb1a9caa7 (diff)
downloadfreebsd-ports-gnome-137e66f3e100e9b307f31b86e184802375ac0e00.tar.gz
freebsd-ports-gnome-137e66f3e100e9b307f31b86e184802375ac0e00.tar.zst
freebsd-ports-gnome-137e66f3e100e9b307f31b86e184802375ac0e00.zip
- Add LICENSE_FILE
- Switch to options helpers
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png2ico/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/png2ico/Makefile b/graphics/png2ico/Makefile
index 36696cf080f7..ddf1b03266b6 100644
--- a/graphics/png2ico/Makefile
+++ b/graphics/png2ico/Makefile
@@ -11,7 +11,8 @@ DISTNAME= ${PORTNAME}-src-${PORTVERSION:S/./-/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts PNG files to Windows icon resource files
-LICENSE= GPLv2
+LICENSE= GPLv2 # only
+LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
@@ -23,6 +24,8 @@ LDFLAGS+= $$(libpng-config --ldflags)
PORTDOCS= bmp.txt
PLIST_FILES= bin/png2ico man/man1/png2ico.1.gz
+OPTIONS_DEFINE= DOCS
+
do-build:
(cd ${WRKSRC} && ${CXX} ${CXXFLAGS} ${CPPFLAGS} -o png2ico \
png2ico.cpp ${LDFLAGS})
@@ -30,6 +33,8 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/png2ico ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/png2ico.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}