freebsd-ports/audio/libmikmod/Makefile
Baptiste Daroussin 5163781803 Convert audio from USE_GMAKE to USES=gmake
While here:
- Trim headers
- Convert some USE_GNOME=pkgconfig to USES=pkgconfig
- Add some missing pkgconf dependencies
- Convert some USE_GNOME=gnomehack to USES=pathfix
2013-08-30 23:01:05 +00:00

45 lines
1 KiB
Makefile

# Created by: Michael Haro <mharo@area51.fremont.ca.us>
# $FreeBSD$
PORTNAME= libmikmod
PORTVERSION= 3.1.12
CATEGORIES= audio
MASTER_SITES= SF/mikmod/libmikmod%20%28source%29/${PORTVERSION}/
MAINTAINER= neuroworker@gmail.com
COMMENT= MikMod Sound Library
USE_AUTOTOOLS= libtool
WANT_GNOME= yes
USE_GNOME= lthack
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
USE_LDCONFIG= yes
MAN1= libmikmod-config.1
INFO= mikmod
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
CONFIGURE_ARGS+= --enable-esd
PKGNAMESUFFIX= -esound
.else
CONFIGURE_ARGS+= --disable-esd
.endif
post-extract:
@${RM} -f ${WRKSRC}/docs/mikmod.info-*
post-patch:
@${REINPLACE_CMD} \
-e 's|\$$CFLAGS -pthread|\$$CFLAGS ${PTHREAD_CFLAGS}|g' \
-e 's|-pthread \$$REENTRANT|\$$REENTRANT ${PTHREAD_CFLAGS}|g' \
-e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \
-e 's|-pthread|${PTHREAD_LIBS:S/"//g}|g' \
-e 's|-lc_r|${PTHREAD_LIBS:S/"//g}|g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>