aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-10-07 09:38:13 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-10-07 09:38:13 +0800
commitdd76e263cc57146c57d4eda41180daf2342b25a3 (patch)
tree996991ee8411f0159fef8ef608aad032d50a3e48
parent2e786d4c8f31617257594905fec77af49de089b2 (diff)
downloadfreebsd-ports-gnome-dd76e263cc57146c57d4eda41180daf2342b25a3.tar.gz
freebsd-ports-gnome-dd76e263cc57146c57d4eda41180daf2342b25a3.tar.zst
freebsd-ports-gnome-dd76e263cc57146c57d4eda41180daf2342b25a3.zip
- Switch to options helpers
- Add LICENSE_FILE Approved by: portmgr blanket
-rw-r--r--comms/morse/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/comms/morse/Makefile b/comms/morse/Makefile
index dc6258ef0609..facb60b40af8 100644
--- a/comms/morse/Makefile
+++ b/comms/morse/Makefile
@@ -11,6 +11,7 @@ MAINTAINER= shurd@FreeBSD.org
COMMENT= Morse Code Trainer
LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING
PLIST_FILES= bin/morsec bin/QSO man/man1/QSO.1.gz man/man1/morsec.1.gz
@@ -22,22 +23,16 @@ OSS_DESC= Beep using OSS (/dev/dsp)
X11_DESC= Beep using X server
PULSEAUDIO_DESC= Beep using Pulse Audio
-.include <bsd.port.options.mk>
+OSS_MAKE_ARGS= DEVICE=OSS
-.if ${PORT_OPTIONS:MOSS}
-MAKE_FLAGS+= DEVICE=OSS
+X11_MAKE_ARGS= DEVICE=X11
+X11_USE= XORG=x11
+X11_CFLAGS= -I${LOCALBASE}/include
+X11_LDFLAGS= -L${LOCALBASE}/lib
-.elif ${PORT_OPTIONS:MX11}
-MAKE_FLAGS+= DEVICE=X11
-USE_XORG= x11
-CFLAGS+= -I${PREFIX}/include
-LDFLAGS+= -L${PREFIX}/lib
-
-.elif ${PORT_OPTIONS:MPULSEAUDIO}
-MAKE_FLAGS+= DEVICE=PA
-LIB_DEPENDS+= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
-USES+= pkgconfig
-.endif
+PULSEAUDIO_MAKE_ARGS= DEVICE=PA
+PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_USES= pkgconfig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/morse ${STAGEDIR}${PREFIX}/bin/morsec