aboutsummaryrefslogtreecommitdiffstats
path: root/cad/spice/files/Makefile
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-08-22 03:41:06 +0800
committerhrs <hrs@FreeBSD.org>2014-08-22 03:41:06 +0800
commit901ecb891b43b1dff9758f7b66ebb4a136623b4e (patch)
tree1be3575da9715e54360277c698bf75ced8ceae0e /cad/spice/files/Makefile
parentec21199fce1c1bb3993374819166eeaef8d99be8 (diff)
downloadfreebsd-ports-gnome-901ecb891b43b1dff9758f7b66ebb4a136623b4e.tar.gz
freebsd-ports-gnome-901ecb891b43b1dff9758f7b66ebb4a136623b4e.tar.zst
freebsd-ports-gnome-901ecb891b43b1dff9758f7b66ebb4a136623b4e.zip
- Cleanup ${FILESDIR}/Makefile.
- Remove MAKE_JOBS_UNSAFE.
Diffstat (limited to 'cad/spice/files/Makefile')
-rw-r--r--cad/spice/files/Makefile55
1 files changed, 29 insertions, 26 deletions
diff --git a/cad/spice/files/Makefile b/cad/spice/files/Makefile
index 839a4d05e48c..71da64550ee3 100644
--- a/cad/spice/files/Makefile
+++ b/cad/spice/files/Makefile
@@ -1,31 +1,34 @@
#
# $FreeBSD$
#
-all:
+build:
${SH} util/build FreeBSD default
+ strip ${PROGRAMS:S,^,FreeBSD/obj/bin/,}
-install:
- mkdir -p ${DESTDIR}${PREFIX}/share/spice/helpdir \
- ${DESTDIR}${PREFIX}/share/spice/scripts
- cd FreeBSD/obj/bin && \
- ${BSD_INSTALL_PROGRAM} \
- spice3 nutmeg sconvert help proc2mod multidec \
- ${DESTDIR}${PREFIX}/bin
- ${BSD_INSTALL_DATA} lib/helpdir/spice.txt \
- ${DESTDIR}${PREFIX}/share/spice/helpdir
- ${BSD_INSTALL_SCRIPT} lib/scripts/setplot lib/scripts/spinit \
- ${DESTDIR}${PREFIX}/share/spice/scripts
- ${BSD_INSTALL_DATA} lib/mfbcap lib/news \
- ${DESTDIR}${PREFIX}/share/spice
- ${BSD_INSTALL_MAN} man/man5/mfbcap.5 \
- ${DESTDIR}${PREFIX}/man/man5/mfbcap.5
- ${BSD_INSTALL_MAN} man/man1/sconvert.1 \
- ${DESTDIR}${PREFIX}/man/man1/sconvert.1
- ${BSD_INSTALL_MAN} man/man1/nutmeg.1 \
- ${DESTDIR}${PREFIX}/man/man1/nutmeg.1
- ${BSD_INSTALL_MAN} man/man1/spice.1 \
- ${DESTDIR}${PREFIX}/man/man1/spice.1
- ${BSD_INSTALL_MAN} man/man1/spice.1 \
- ${DESTDIR}${PREFIX}/man/man1/spice3.1
- ${BSD_INSTALL_MAN} man/man3/mfb.3 \
- ${DESTDIR}${PREFIX}/man/man3/mfb.3
+PREFIX?= /usr/local
+
+BINDIR= ${PREFIX}/bin
+SHAREFILESDIR= ${PREFIX}/share/spice
+HELPFILESDIR= ${SHAREFILESDIR}/helpdir
+SCRIPTFILESDIR= ${SHAREFILESDIR}/scripts
+
+FILESGROUPS= PROGRAMS HELPFILES SCRIPTFILES SHAREFILES
+
+PROGRAMSMODE= ${BINMODE}
+PROGRAMSOWN= ${BINOWN}
+PROGRAMSGRP= ${BINGRP}
+
+PROGRAMS= spice3 nutmeg sconvert help proc2mod multidec
+HELPFILES= spice.txt
+SCRIPTFILES= setplot spinit
+SHAREFILES= mfbcap news
+
+MAN= spice.1 nutmeg.1 sconvert.1 mfb.3 mfbcap.5
+MLINKS= spice.1 spice3.1
+MANDIR= ${PREFIX}/man/man
+
+beforeinstall:
+ mkdir -p ${DESTDIR}${HELPFILESDIR} ${DESTDIR}${SCRIPTFILESDIR}
+
+.PATH: FreeBSD/obj/bin lib/helpdir lib/scripts lib man/man1 man/man3 man/man5
+.include <bsd.prog.mk>