aboutsummaryrefslogtreecommitdiff
path: root/audio/linux-c6-alsa-lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/linux-c6-alsa-lib/Makefile')
-rw-r--r--audio/linux-c6-alsa-lib/Makefile27
1 files changed, 10 insertions, 17 deletions
diff --git a/audio/linux-c6-alsa-lib/Makefile b/audio/linux-c6-alsa-lib/Makefile
index 139f21480a5f..39e7825d0f63 100644
--- a/audio/linux-c6-alsa-lib/Makefile
+++ b/audio/linux-c6-alsa-lib/Makefile
@@ -3,7 +3,7 @@
PORTNAME= alsa-lib
PORTVERSION= 1.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio linux
MAINTAINER= emulation@FreeBSD.org
@@ -13,26 +13,19 @@ LICENSE= GPLv3
RUN_DEPENDS= alsa-lib>0:audio/alsa-lib
-CONFLICTS= linux-f10-alsa-lib-[0-9]*
-
-
-USES= linux:c6
-USE_LINUX_RPM= yes
+DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr
RPMVERSION= 4.el6
+USES= linux:c6
USE_LDCONFIG= yes
+USE_LINUX_RPM= yes
-# We will use native configuration file, so delete a linux one
-post-extract:
- @${RM} -r ${WRKSRC}/etc
+post-patch:
+ @${RM} -r ${WRKSRC}/etc/* ${WRKSRC}/usr/lib/alsa-lib/smixer/*.la \
+ ${WRKSRC}/usr/lib64/alsa-lib/smixer/*.la \
+ ${WRKSRC}/usr/share/alsa
post-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/etc
- ${LN} -fs ${LOCALBASE}/etc/asound.conf ${STAGEDIR}${PREFIX}/etc
- ${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-ac97.la
- ${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-hda.la
- ${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-sbase.la
- ${RM} ${STAGEDIR}${PREFIX}/usr/lib64/alsa-lib/smixer/smixer-ac97.la
- ${RM} ${STAGEDIR}${PREFIX}/usr/lib64/alsa-lib/smixer/smixer-hda.la
- ${RM} ${STAGEDIR}${PREFIX}/usr/lib64/alsa-lib/smixer/smixer-sbase.la
+ ${LN} -sf ${LOCALBASE}/etc/asound.conf ${STAGEDIR}${PREFIX}/etc
+ ${LN} -sf ${LOCALBASE}/share/alsa ${STAGEDIR}${PREFIX}/usr/share
.include <bsd.port.mk>