summaryrefslogtreecommitdiffstats
path: root/audio/oss/Makefile
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-04-13 10:42:36 +0000
committerjbeich <jbeich@FreeBSD.org>2016-04-13 10:42:36 +0000
commit4fc408c5269481ddb998931c65ba0df586c0a9f0 (patch)
treea6370ddd0c7654794038ebf9e0e78777c5676882 /audio/oss/Makefile
parent4a19f2c8612c8729fc80ef99bcd374e1bfafba73 (diff)
downloadFreeBSD-ports-4fc408c5269481ddb998931c65ba0df586c0a9f0.zip
FreeBSD-ports-4fc408c5269481ddb998931c65ba0df586c0a9f0.tar.gz
audio/oss: convert to CONFIGURE_OUTSOURCE
PR: 208294 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D4157
Diffstat (limited to 'audio/oss/Makefile')
-rw-r--r--audio/oss/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/audio/oss/Makefile b/audio/oss/Makefile
index d119091..09f7079 100644
--- a/audio/oss/Makefile
+++ b/audio/oss/Makefile
@@ -15,11 +15,12 @@ LICENSE= BSD2CLAUSE
BUILD_DEPENDS= gawk:lang/gawk
USES= tar:bzip2 kmod pkgconfig
+HAS_CONFIGURE= yes
+CONFIGURE_OUTSOURCE= yes
+CONFIGURE_ENV= HOSTCC="${CC}"
ALL_TARGET= all install
USE_GNOME= gtk20
USE_RC_SUBR= oss
-WRKSRC= ${WRKDIR}/build
-PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
SUB_FILES= pkg-install pkg-deinstall
ONLY_FOR_ARCHS= amd64 i386
@@ -31,15 +32,13 @@ OSS_CONF_FILES= oss_audigyls oss_audioloop oss_cs461x oss_emu10k1x \
oss_sbpci oss_sbxfi oss_trident oss_usb oss_userdev \
oss_ymf7xx osscore
-PROTO_DIR= ${WRKSRC}/prototype
+PROTO_DIR= ${INSTALL_WRKSRC}/prototype
PROTO_ETCDIR= ${PROTO_DIR}/etc
PROTO_BINDIR= ${PROTO_DIR}/usr/bin
PROTO_SBINDIR= ${PROTO_DIR}/usr/sbin
PROTO_MANDIR= ${PROTO_DIR}/usr/share/man
PROTO_OSSLIBDIR=${PROTO_DIR}${PREFIX}/lib/oss
-CONFIGURE_ENV= CC="${CC}" HOSTCC="${CC}"
-
OPTIONS_DEFINE= VORBIS
OPTIONS_DEFAULT=VORBIS
@@ -59,11 +58,6 @@ post-patch:
-name make.local -or -name soundoff -or -name soundon | \
${XARGS} ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g'
-do-configure:
- ${MKDIR} ${WRKSRC}
- (cd ${WRKSRC} && \
- ${SETENV} ${CONFIGURE_ENV} ${PATCH_WRKSRC}/configure)
-
do-install:
${INSTALL_PROGRAM} ${PROTO_BINDIR}/* ${STAGEDIR}${PREFIX}/bin/
# @${ECHO_CMD} "OSSLIBDIR=${PREFIX}/lib/oss" > ${PROTO_ETCDIR}/oss.conf
OpenPOWER on IntegriCloud