aboutsummaryrefslogtreecommitdiff
path: root/textproc/confetti
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-26 11:57:13 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-26 11:57:13 +0000
commit5dd4ea2cab04a53916d2bcfd2cafa38c0186a8fe (patch)
treee14a90edc506e3e05e90c1a0c6b962115578a5c7 /textproc/confetti
parentedf41c0c16910b284f2fbfe8d97561828aa04ed2 (diff)
downloadports-5dd4ea2cab04a53916d2bcfd2cafa38c0186a8fe.tar.gz
ports-5dd4ea2cab04a53916d2bcfd2cafa38c0186a8fe.zip
Notes
Diffstat (limited to 'textproc/confetti')
-rw-r--r--textproc/confetti/Makefile22
-rw-r--r--textproc/confetti/pkg-plist8
2 files changed, 6 insertions, 24 deletions
diff --git a/textproc/confetti/Makefile b/textproc/confetti/Makefile
index 8903b1c40c7b..d7d08486a878 100644
--- a/textproc/confetti/Makefile
+++ b/textproc/confetti/Makefile
@@ -12,33 +12,23 @@ COMMENT= Configuration file parser generator
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
USE_BZIP2= yes
-USE_GMAKE= yes
-USES= bison perl5
+USES= bison perl5 gmake
DATE= 20120801
MAKE_ARGS+= FLEX=${LOCALBASE}/bin/flex
MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= EXAMPLES
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-PLIST_SUB+= EXAMPLES=""
-.else
-PLIST_SUB+= EXAMPLES="@comment "
-.endif
+PLIST_FILES= bin/confetti
+PORTEXAMPLES= *
post-patch:
@${REINPLACE_CMD} -e 's|CC=|CC?=|' -e 's|CFLAGS=|CFLAGS?=|' \
${WRKSRC}/Makefile
do-install:
- ${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-post-install:
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}
-.endif
+ ${INSTALL} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/textproc/confetti/pkg-plist b/textproc/confetti/pkg-plist
deleted file mode 100644
index 597af37250fb..000000000000
--- a/textproc/confetti/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-bin/confetti
-%%EXAMPLES%%%%EXAMPLESDIR%%/example/example.c
-%%EXAMPLES%%%%EXAMPLESDIR%%/example/Makefile
-%%EXAMPLES%%%%EXAMPLESDIR%%/example/my_my_product.cfg
-%%EXAMPLES%%%%EXAMPLESDIR%%/example/example_buffer.c
-%%EXAMPLES%%%%EXAMPLESDIR%%/example/example.cfgtmpl
-%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%/example
-%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%