blob: bab3656b58c4f56e8edcba13ac941f73c1586019 (
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
|
# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$
PORTNAME= dumb
PORTVERSION= 0.9.3
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= IT, XM, S3M, and MOD player library
USE_GMAKE= yes
OPTIONS_DEFINE= ALLEGRO
ALLEGRO_DESC= Enable allegro support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALLEGRO}
LIB_DEPENDS+= alleg:${PORTSDIR}/devel/allegro
PLIST_SUB+= ALLEGRO=""
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`"
PKGNAMESUFFIX= -allegro
CONFLICTS= dumb-[0-9]*
.else
PLIST_SUB+= ALLEGRO="@comment "
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS=
CONFLICTS= dumb-allegro-[0-9]*
.endif
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
CFLAGS+= -fPIC
.endif
pre-configure:
@${CP} ${FILESDIR}/config.txt ${WRKSRC}/make
@${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE}," ${WRKSRC}/make/config.txt
.if ${PORT_OPTIONS:MALLEGRO}
@${REINPLACE_CMD} -e "s,@ALLEGRO@,," ${WRKSRC}/make/config.txt
.else
@${REINPLACE_CMD} -e "s,@ALLEGRO@,#," ${WRKSRC}/make/config.txt
.endif
.include <bsd.port.mk>
|