svn commit: r339531 - head/www/qdecoder
Johan van Selst
johans at FreeBSD.org
Sun Jan 12 19:01:57 UTC 2014
Author: johans
Date: Sun Jan 12 19:01:55 2014
New Revision: 339531
URL: http://svnweb.freebsd.org/changeset/ports/339531
Log:
- Enable stage support
- Fix compilation with DEBUG option
- Move full package list to pkg-plist
- Minor cleanups
Added:
head/www/qdecoder/pkg-plist (contents, props changed)
Modified:
head/www/qdecoder/Makefile
Modified: head/www/qdecoder/Makefile
==============================================================================
--- head/www/qdecoder/Makefile Sun Jan 12 18:50:44 2014 (r339530)
+++ head/www/qdecoder/Makefile Sun Jan 12 19:01:55 2014 (r339531)
@@ -15,25 +15,17 @@ USE_LDCONFIG= yes
MAKE_ARGS= exec_prefix="${PREFIX}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-OPTIONS_DEFINE= DEBUG
-PORTEXAMPLES= *
+OPTIONS_DEFINE= DEBUG
+DEBUG_CONFIGURE_ENABLE= debug
-PLIST_FILES= include/qdecoder.h \
- lib/libqdecoder.a \
- lib/libqdecoder.so \
- lib/libqdecoder.so.12
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+="--enable-debug"
-.endif
+post-patch:
+ ${REINPLACE_CMD} 's/.{[A-Z]*DIR/$${DESTDIR}&/' ${WRKSRC}/src/Makefile.in
+ ${REINPLACE_CMD} '/<limits/{p;s//<errno/;}' ${WRKSRC}/src/qcgireq.c
post-install:
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "Makefile *.c *.html" ${EXAMPLESDIR})
-.endif
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "Makefile *.c *.html" \
+ ${STAGEDIR}${EXAMPLESDIR}
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libqdecoder.so
.include <bsd.port.mk>
Added: head/www/qdecoder/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/qdecoder/pkg-plist Sun Jan 12 19:01:55 2014 (r339531)
@@ -0,0 +1,14 @@
+include/qdecoder.h
+lib/libqdecoder.a
+lib/libqdecoder.so
+lib/libqdecoder.so.12
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cookie.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/download.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/index.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/multivalue.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/query.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/session.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/upload.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/uploadfile.c
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
More information about the svn-ports-all
mailing list