blob: 95e4e931e66a605763e99ddcee816a9a5344b37b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# ports collection makefile for: libmikmod
# Date created: Sun Apr 11 13:06:01 PDT 1999
# Whom: Michael Haro <mharo@area51.fremont.ca.us>
#
# $FreeBSD$
#
PORTNAME= libmikmod
PORTVERSION= 3.1.10
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
http://www.mikmod.org/files/libmikmod/
MASTER_SITE_SUBDIR= apps/sound/libs
MAINTAINER= ports@FreeBSD.org
COMMENT= MikMod Sound Library
USE_REINPLACE= yes
WANT_GNOME= yes
USE_LIBTOOL= yes
USE_GMAKE= yes
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
MAKE_ENV= SHELL=/bin/sh
INSTALLS_SHLIB= 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>
|