aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-01 04:17:58 +0800
committerpawel <pawel@FreeBSD.org>2014-06-01 04:17:58 +0800
commit80efc30f24cd07e99b8d3fbc50da3ff28e6e1fa2 (patch)
tree2e3f6bf4fd5b378e854052959f504a305af2182c /lang
parent13b20fa8e9a6eae9dde6f0b45242cc4a61048037 (diff)
downloadfreebsd-ports-gnome-80efc30f24cd07e99b8d3fbc50da3ff28e6e1fa2.tar.gz
freebsd-ports-gnome-80efc30f24cd07e99b8d3fbc50da3ff28e6e1fa2.tar.zst
freebsd-ports-gnome-80efc30f24cd07e99b8d3fbc50da3ff28e6e1fa2.zip
Add staging support
Diffstat (limited to 'lang')
-rw-r--r--lang/cocor/Makefile38
-rw-r--r--lang/cocor/pkg-plist1
2 files changed, 15 insertions, 24 deletions
diff --git a/lang/cocor/Makefile b/lang/cocor/Makefile
index 23f2e3d4feec..5e5248da1976 100644
--- a/lang/cocor/Makefile
+++ b/lang/cocor/Makefile
@@ -21,14 +21,8 @@ MAKE_ENV= CRFRAMES="${WRKSRC}/frames"
MAKEFILE= unix.mk
ALL_TARGET= all1
-MAN1= ${PORTNAME}.1
-
-NO_STAGE= yes
-
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.options.mk>
-
post-patch:
.for i in sources/unix.mk taste/unix.mk
@${REINPLACE_CMD} -e 's|^CFLAGS|#CFLAGS|' ${WRKSRC}/${i}
@@ -38,23 +32,19 @@ post-patch:
.endfor
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${MANPREFIX}/man/man1
- @${MKDIR} ${PREFIX}/lib/${PORTNAME}
-.for i in cplus2 taste taste_cp
- @(cd ${WRKSRC}; ${COPYTREE_SHARE} ${i} ${PREFIX}/lib/${PORTNAME})
-.endfor
- @${MKDIR} ${DATADIR}
- @(cd ${WRKSRC}/frames; ${COPYTREE_SHARE} . ${DATADIR})
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/coco.use ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/cocol ${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/samples/*.atg ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/samples/*.inp ${EXAMPLESDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
+ (cd ${WRKSRC}; ${COPYTREE_SHARE} "cplus2 taste taste_cp" \
+ ${STAGEDIR}${PREFIX}/lib/${PORTNAME})
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/frames; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/coco.use ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/cocol ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/samples/*.atg ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/samples/*.inp ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/lang/cocor/pkg-plist b/lang/cocor/pkg-plist
index df1b27dfbf1a..825279770b4c 100644
--- a/lang/cocor/pkg-plist
+++ b/lang/cocor/pkg-plist
@@ -119,6 +119,7 @@ lib/cocor/taste_cp/xrefp.o
lib/cocor/taste_cp/xrefs.cpp
lib/cocor/taste_cp/xrefs.hpp
lib/cocor/taste_cp/xrefs.o
+man/man1/cocor.1.gz
%%DATADIR%%/compiler.frm
%%DATADIR%%/cplus2/compiler.frm
%%DATADIR%%/cplus2/parser_c.frm