diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-02-20 23:01:21 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-02-20 23:01:21 +0800 |
commit | 2927307b2d0857471c0d151bd26a6f8a031c0df1 (patch) | |
tree | 14d554f498c53bc0350928a9084895d37c999abb | |
parent | 0125592b5b81d3ef06ffd78d765438d656facae0 (diff) | |
download | freebsd-ports-gnome-2927307b2d0857471c0d151bd26a6f8a031c0df1.tar.gz freebsd-ports-gnome-2927307b2d0857471c0d151bd26a6f8a031c0df1.tar.zst freebsd-ports-gnome-2927307b2d0857471c0d151bd26a6f8a031c0df1.zip |
Support staging
-rw-r--r-- | lang/Gofer/Makefile | 31 | ||||
-rw-r--r-- | lang/Gofer/pkg-plist | 1 |
2 files changed, 16 insertions, 16 deletions
diff --git a/lang/Gofer/Makefile b/lang/Gofer/Makefile index 6c0fbb400b6d..aea23c69a5bb 100644 --- a/lang/Gofer/Makefile +++ b/lang/Gofer/Makefile @@ -18,29 +18,28 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DUSE_READLINE=1" \ DOCSDIR= ${PREFIX}/share/doc/Gofer LIBDIR= ${PREFIX}/lib/Gofer -MAN1= gofer.1 -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' \ ${WRKDIR}/scripts/gofer \ ${WRKDIR}/scripts/goferc do-install: - @${MKDIR} ${LIBDIR} - ${INSTALL_DATA} ${WRKDIR}/*.prelude ${LIBDIR} - ${INSTALL_DATA} ${WRKDIR}/src/prelude.h ${LIBDIR} + ${MKDIR} ${STAGEDIR}${LIBDIR} + ${INSTALL_DATA} ${WRKDIR}/*.prelude ${STAGEDIR}${LIBDIR} + ${INSTALL_DATA} ${WRKDIR}/src/prelude.h ${STAGEDIR}${LIBDIR} ${REINPLACE_CMD} -e "s|#include \"prelude.h\"|#include \"${LIBDIR}/prelude.h\"|" ${WRKDIR}/src/gofc.h - ${INSTALL_DATA} ${WRKDIR}/src/gofc.h ${LIBDIR} - ${INSTALL_DATA} ${WRKDIR}/src/runtime.o ${LIBDIR} - ${INSTALL_SCRIPT} ${WRKDIR}/scripts/gofer ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/scripts/goferc ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKDIR}/src/gofer ${LIBDIR} - ${INSTALL_PROGRAM} ${WRKDIR}/src/gofc ${LIBDIR} - ${INSTALL_MAN} ${WRKDIR}/docs/gofer.1 ${PREFIX}/man/man1 -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/docs/* ${DOCSDIR} -.endif + ${INSTALL_DATA} ${WRKDIR}/src/gofc.h ${STAGEDIR}${LIBDIR} + ${INSTALL_DATA} ${WRKDIR}/src/runtime.o ${STAGEDIR}${LIBDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/scripts/gofer ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/scripts/goferc ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKDIR}/src/gofer ${STAGEDIR}${LIBDIR} + ${INSTALL_PROGRAM} ${WRKDIR}/src/gofc ${STAGEDIR}${LIBDIR} + ${INSTALL_MAN} ${WRKDIR}/docs/gofer.1 ${STAGEDIR}${PREFIX}/man/man1 + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/docs/* ${STAGEDIR}${DOCSDIR} + ${STRIP_CMD} ${STAGEDIR}${LIBDIR}/runtime.o .include <bsd.port.mk> diff --git a/lang/Gofer/pkg-plist b/lang/Gofer/pkg-plist index db5207c5cc3c..1a105edd595c 100644 --- a/lang/Gofer/pkg-plist +++ b/lang/Gofer/pkg-plist @@ -10,6 +10,7 @@ lib/Gofer/gofc.h lib/Gofer/runtime.o lib/Gofer/gofer lib/Gofer/gofc +man/man1/gofer.1.gz %%PORTDOCS%%%%DOCSDIR%%/Readme %%PORTDOCS%%%%DOCSDIR%%/appx_a %%PORTDOCS%%%%DOCSDIR%%/appx_b |