freebsd-ports/comms/morse/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

48 lines
1.2 KiB
Makefile

# Created by: Stephen Hurd <shurd@FreeBSD.org>
# $FreeBSD$
PORTNAME= morse
PORTVERSION= 2.5
CATEGORIES= comms hamradio
MASTER_SITES= http://www.catb.org/~esr/morse/ \
LOCAL/db
MAINTAINER= shurd@FreeBSD.org
COMMENT= Morse Code Trainer
LICENSE= BSD3CLAUSE
PLIST_FILES= bin/morsec bin/QSO man/man1/QSO.1.gz man/man1/morsec.1.gz
OPTIONS_SINGLE= SOUND
OPTIONS_SINGLE_SOUND= OSS X11 PULSEAUDIO
OPTIONS_DEFAULT= OSS
OSS_DESC= Beep using OSS (/dev/dsp)
X11_DESC= Beep using X server
PULSEAUDIO_DESC= Beep using Pulse Audio
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOSS}
MAKE_FLAGS+= DEVICE=OSS
.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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/morse ${STAGEDIR}${PREFIX}/bin/morsec
${INSTALL_PROGRAM} ${WRKSRC}/QSO ${STAGEDIR}${PREFIX}/bin/QSO
${INSTALL_MAN} ${WRKSRC}/morse.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/morsec.1
${INSTALL_MAN} ${WRKSRC}/QSO.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/QSO.1
.include <bsd.port.mk>