aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/Gofer/Makefile31
-rw-r--r--lang/Gofer/pkg-plist1
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