2001-03-12 20:40:04 +01:00
|
|
|
# ports collection makefile for: libmikmod
|
|
|
|
# Date created: Sun Apr 11 13:06:01 PDT 1999
|
|
|
|
# Whom: Michael Haro <mharo@area51.fremont.ca.us>
|
1999-05-06 00:16:14 +02:00
|
|
|
#
|
1999-08-25 06:36:31 +02:00
|
|
|
# $FreeBSD$
|
1999-05-06 00:16:14 +02:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= libmikmod
|
2002-03-07 03:42:41 +01:00
|
|
|
PORTVERSION= 3.1.10
|
1999-05-06 00:16:14 +02:00
|
|
|
CATEGORIES= audio
|
2002-03-07 03:42:41 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
|
|
|
http://www.mikmod.org/files/libmikmod/
|
|
|
|
MASTER_SITE_SUBDIR= apps/sound/libs
|
1999-05-06 00:16:14 +02:00
|
|
|
|
2001-03-07 22:07:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-05-06 00:16:14 +02:00
|
|
|
|
2002-07-08 12:22:14 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-08-22 06:48:10 +02:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
WANT_GNOME= yes
|
1999-05-29 06:29:50 +02:00
|
|
|
USE_LIBTOOL= yes
|
2002-08-22 06:48:10 +02:00
|
|
|
USE_GMAKE= yes
|
2002-03-07 03:42:41 +01:00
|
|
|
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
|
2002-08-23 20:48:50 +02:00
|
|
|
MAKE_ENV= SHELL=/bin/sh
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-06-05 09:43:16 +02:00
|
|
|
|
2000-01-28 23:01:42 +01:00
|
|
|
MAN1= libmikmod-config.1
|
1999-06-05 09:43:16 +02:00
|
|
|
|
2002-08-16 21:51:41 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-08-22 06:48:10 +02:00
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
USE_GNOME= esound
|
|
|
|
CONFIGURE_ARGS+= --enable-esd
|
|
|
|
PKGNAMESUFFIX= -esound
|
2002-08-16 21:51:41 +02:00
|
|
|
.else
|
2002-08-22 06:48:10 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
2002-08-16 21:51:41 +02:00
|
|
|
.endif
|
|
|
|
|
2002-03-07 03:42:41 +01:00
|
|
|
post-extract:
|
|
|
|
@${RM} -f ${WRKSRC}/docs/mikmod.info-*
|
2000-08-15 13:34:32 +02:00
|
|
|
|
2002-03-07 03:42:41 +01:00
|
|
|
post-patch:
|
2002-07-08 12:22:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|\$$CFLAGS -pthread|\$$CFLAGS ${PTHREAD_CFLAGS}|g ; \
|
2002-03-07 03:42:41 +01:00
|
|
|
s|-pthread \$$REENTRANT|\$$REENTRANT ${PTHREAD_CFLAGS}|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \
|
|
|
|
s|-lc_r|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
|
1999-05-06 00:16:14 +02:00
|
|
|
|
2002-08-16 21:51:41 +02:00
|
|
|
.include <bsd.port.post.mk>
|