freebsd-ports/audio/linux-f10-alsa-plugins-oss/Makefile
Juergen Lock e9b25cc7c5 - Handle config file properly on pkg_delete and reinstall, don't just
overwrite it.
- Small cosmetic changes.

Submitted by:	avg (final patch via private email)
Approved by:	portmgr (miwi, via irc)
2011-05-05 21:15:45 +00:00

38 lines
949 B
Makefile

# New ports collection makefile for: audio/linux-f10-alsa-plugins-oss
# Date created: 2010-06-06
# Whom: hashiz
#
# $FreeBSD$
#
PORTNAME= alsa-plugins-oss
PORTVERSION= 1.0.21
PORTREVISION= 2
CATEGORIES= audio linux
PKGNAMEPREFIX= linux-f10-
DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION}
MAINTAINER= hashiz@meridiani.jp
COMMENT= OSS plugin for ALSA (Linux Fedora 10)
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX_RPM= yes
USE_LINUX_APPS= alsalib
LINUX_DIST_VER= 10
RPMVERSION= 3.fc10
SRC_DISTFILES= ${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}${SRC_SUFX}
USE_LDCONFIG= yes
CONF_FILE= etc/alsa/pcm/pcm-oss.conf
post-patch:
@${RM} ${WRKSRC}/${CONF_FILE}.orig
@${MV} ${WRKSRC}/${CONF_FILE} ${WRKSRC}/${CONF_FILE}-dist
post-install:
@if [ ! -f ${PREFIX}/${CONF_FILE} ]; then \
${CP} -p ${PREFIX}/${CONF_FILE}-dist ${PREFIX}/${CONF_FILE} ; \
fi
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>