aboutsummaryrefslogtreecommitdiffstats
path: root/lang/bwbasic
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-02-03 06:42:55 +0800
committermiwi <miwi@FreeBSD.org>2010-02-03 06:42:55 +0800
commitaef48390ba6b01e7787d8608317ba97d5e040adb (patch)
treee85f90b3c247599bd69e10f2966296f55c400b43 /lang/bwbasic
parentd16d6a4446c0bf6740c9416adaf618206a6640e4 (diff)
downloadfreebsd-ports-gnome-aef48390ba6b01e7787d8608317ba97d5e040adb.tar.gz
freebsd-ports-gnome-aef48390ba6b01e7787d8608317ba97d5e040adb.tar.zst
freebsd-ports-gnome-aef48390ba6b01e7787d8608317ba97d5e040adb.zip
- Support NO_WRKSUBDIR
- Support PORTDOCS/PORTEXAMPLES - Support PLIST_FILES PR: 143440 Submitted by: Ports Fury
Diffstat (limited to 'lang/bwbasic')
-rw-r--r--lang/bwbasic/Makefile22
-rw-r--r--lang/bwbasic/pkg-plist47
2 files changed, 15 insertions, 54 deletions
diff --git a/lang/bwbasic/Makefile b/lang/bwbasic/Makefile
index a35a589ea024..24617a067c1c 100644
--- a/lang/bwbasic/Makefile
+++ b/lang/bwbasic/Makefile
@@ -13,21 +13,29 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/version%20${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= The Bywater Basic interpreter
+NO_WRKSUBDIR= yes
+
USE_ZIP= yes
USE_DOS2UNIX= yes
GNU_CONFIGURE= yes
-WRKSRC= ${WRKDIR}
MAKE_ARGS= CFLAGS="${CFLAGS} -ansi"
+ALL_TARGET= ${PORTNAME}
+
+PORTDOCS= *
+PORTEXAMPLES= *
+PLIST_FILES= bin/${PORTNAME}
post-patch:
- ${CHMOD} a+x ${WRKDIR}/configure
+ @${CHMOD} a+x ${WRKSRC}/${CONFIGURE_SCRIPT}
-.if !defined(NOPORTDOCS)
post-install:
- ${MKDIR} ${DOCSDIR}
- ${MKDIR} ${EXAMPLESDIR}
- ${CP} ${WRKSRC}/bwbasic.doc ${DOCSDIR}
- ${CP} -r ${WRKSRC}/bwbtest ${EXAMPLESDIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.doc ${DOCSDIR}
+.endif
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @(cd ${WRKSRC}/bwbtest; ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
diff --git a/lang/bwbasic/pkg-plist b/lang/bwbasic/pkg-plist
deleted file mode 100644
index 2d0c3cd90d37..000000000000
--- a/lang/bwbasic/pkg-plist
+++ /dev/null
@@ -1,47 +0,0 @@
-bin/bwbasic
-%%PORTDOCS%%%%DOCSDIR%%/bwbasic.doc
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/abs.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/assign.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/callfunc.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/callsub.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/chain1.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/chain2.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/dataread.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/deffn.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/dim.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/doloop.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/dowhile.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/elseif.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/end.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/err.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/fncallfn.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/fornext.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/function.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/gosub.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/gotolabl.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/ifline.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/index.txt
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/input.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/lof.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/loopuntl.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/main.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/mlifthen.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/on.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/onerr.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/onerrlbl.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/ongosub.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/opentest.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/option.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/pascaltr.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/putget.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/random.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/selcase.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/snglfunc.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/stop.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/term.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/whilwend.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/width.bas
-%%PORTDOCS%%%%EXAMPLESDIR%%/bwbtest/writeinp.bas
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/bwbtest
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%