aboutsummaryrefslogtreecommitdiff
path: root/sysutils/uif2iso
diff options
context:
space:
mode:
authorBarbara Guida <bar@FreeBSD.org>2014-06-12 00:55:07 +0000
committerBarbara Guida <bar@FreeBSD.org>2014-06-12 00:55:07 +0000
commitb02d3ede287edf8d6f692ef79a57014be7e0a337 (patch)
treed01b5ccbb28457247d9de99bbab8ceb6cd207e4b /sysutils/uif2iso
parent2b8d7441ed2d6ed42a8a87683be792a4967b9cac (diff)
downloadports-b02d3ede287edf8d6f692ef79a57014be7e0a337.tar.gz
ports-b02d3ede287edf8d6f692ef79a57014be7e0a337.zip
- Support STAGEDIR
- Add LICENSE Approved by: portmgr blanket
Notes
Notes: svn path=/head/; revision=357552
Diffstat (limited to 'sysutils/uif2iso')
-rw-r--r--sysutils/uif2iso/Makefile25
-rw-r--r--sysutils/uif2iso/pkg-plist4
2 files changed, 20 insertions, 9 deletions
diff --git a/sysutils/uif2iso/Makefile b/sysutils/uif2iso/Makefile
index 30a24ac74572..85dfa34af537 100644
--- a/sysutils/uif2iso/Makefile
+++ b/sysutils/uif2iso/Makefile
@@ -3,6 +3,7 @@
PORTNAME= uif2iso
PORTVERSION= 0.1.7c
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://aluigi.altervista.org/mytoolz/
DISTNAME= ${PORTNAME}
@@ -10,22 +11,28 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert MagicISO UIF files to ISO9660
+LICENSE= GPLv2
+
USES= zip
+
WRKSRC= ${WRKDIR}/src
-PLIST_FILES= bin/uif2iso
-PORTDOCS= README uif2iso.txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} 's|exit(1)|exit(0)|' ${WRKSRC}/uif2iso.c
- @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} 's|exit(1)|exit(0)|' \
+ ${WRKSRC}/uif2iso.c
+ @${REINPLACE_CMD} 's|/usr/local|${STAGEDIR}${PREFIX}|; \
+ s|$$(DESTDIR)||' \
+ ${WRKSRC}/Makefile
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for docs in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKDIR}/${docs} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for doc in README uif2iso.txt
+ ${INSTALL_DATA} ${WRKDIR}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/sysutils/uif2iso/pkg-plist b/sysutils/uif2iso/pkg-plist
new file mode 100644
index 000000000000..92f96f9700a1
--- /dev/null
+++ b/sysutils/uif2iso/pkg-plist
@@ -0,0 +1,4 @@
+bin/uif2iso
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/uif2iso.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%