summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordb <db@FreeBSD.org>2013-12-30 23:13:43 +0000
committerdb <db@FreeBSD.org>2013-12-30 23:13:43 +0000
commit742901db78a286d08bdb2255a9d8734a037a3937 (patch)
treed511e5b9b1da99c63944b4f2c96878f7428f6b8a
parentcc75e38d0ea108fd181ec6fe60303810fe8e7080 (diff)
downloadFreeBSD-ports-742901db78a286d08bdb2255a9d8734a037a3937.zip
FreeBSD-ports-742901db78a286d08bdb2255a9d8734a037a3937.tar.gz
- Enable staging
-rw-r--r--textproc/cwtext/Makefile14
-rw-r--r--textproc/cwtext/files/patch-makefile18
2 files changed, 24 insertions, 8 deletions
diff --git a/textproc/cwtext/Makefile b/textproc/cwtext/Makefile
index 07b9032..60bf47f 100644
--- a/textproc/cwtext/Makefile
+++ b/textproc/cwtext/Makefile
@@ -14,16 +14,14 @@ USE_GMAKE= yes
MAKEFILE= makefile
ALL_TARGET= ALL
-NO_STAGE= yes
+LICENSE= GPLv2
+
post-patch:
- @${REINPLACE_CMD} -e "s,^PREFIX,#PREFIX,g" \
- -e "s,gcc,${CC} ${CFLAGS},g" \
- -e "s,install -sc,${INSTALL_PROGRAM},g" ${WRKSRC}/${MAKEFILE}
+ @${REINPLACE_CMD} -e "s,%%STAGEDIR%%,${STAGEDIR},g" \
+ ${WRKSRC}/makefile
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/textproc/cwtext/files/patch-makefile b/textproc/cwtext/files/patch-makefile
new file mode 100644
index 0000000..1747997
--- /dev/null
+++ b/textproc/cwtext/files/patch-makefile
@@ -0,0 +1,18 @@
+--- makefile.orig 2004-12-16 07:15:22.000000000 -0500
++++ makefile 2013-12-30 18:06:28.000000000 -0500
+@@ -1,11 +1,10 @@
+-PREFIX=/usr/local
+-
+ ALL: cwtext cwpcm cwmm
++STAGEDIR=%%STAGEDIR%%
+
+ install: ALL
+- install -sc cwtext ${PREFIX}/bin
+- install -sc cwpcm ${PREFIX}/bin
+- install -sc cwmm ${PREFIX}/bin
++ install -s -o root -g wheel -m 555 cwtext ${STAGEDIR}${PREFIX}/bin
++ install -s -o root -g wheel -m 555 cwpcm ${STAGEDIR}${PREFIX}/bin
++ install -s -o root -g wheel -m 555 cwmm ${STAGEDIR}${PREFIX}/bin
+
+ cwmm: cwmm.o morse.o
+ ${CC} ${CFLAGS} -o cwmm $^
OpenPOWER on IntegriCloud