aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/multican
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-01-04 17:07:29 +0800
committernemysis <nemysis@FreeBSD.org>2014-01-04 17:07:29 +0800
commit6250fd6bd2f2afbff1f4e542afc0278149b2c879 (patch)
tree920f30e3775b45063edd7bf91b653a8712e654cf /graphics/multican
parent3056e3c269a17351043d9b6ad538f38547ef7306 (diff)
downloadfreebsd-ports-gnome-6250fd6bd2f2afbff1f4e542afc0278149b2c879.tar.gz
freebsd-ports-gnome-6250fd6bd2f2afbff1f4e542afc0278149b2c879.tar.zst
freebsd-ports-gnome-6250fd6bd2f2afbff1f4e542afc0278149b2c879.zip
- Support STAGEDIR
- Add DOCS Option - Disable all warnings with -w Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'graphics/multican')
-rw-r--r--graphics/multican/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/graphics/multican/Makefile b/graphics/multican/Makefile
index b8ab59eec9a7..f0898e32f02d 100644
--- a/graphics/multican/Makefile
+++ b/graphics/multican/Makefile
@@ -20,22 +20,21 @@ PLIST_FILES= bin/multican lib/libmultican.so.0 lib/libmultican.so \
PORTDOCS= ChangeLog README TODO
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/canonio.c \
${WRKSRC}/usbio.c ${WRKSRC}/multican.c
+ @${REINPLACE_CMD} -e 's|`getconf LFS_CFLAGS`|-w|' \
+ ${WRKSRC}/Makefile
post-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- ${INSTALL_LIB} ${WRKSRC}/libmultican.so.0 ${PREFIX}/lib/
- ${LN} -sf libmultican.so.0 ${PREFIX}/lib/libmultican.so
- ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_LIB} ${WRKSRC}/libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/
+ ${LN} -sf libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/libmultican.so
+ ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>