blob: 7c9624380f220848325993bf097cf3ea758d111d (
plain)
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
|
PORTNAME= dumb
PORTVERSION= 0.9.3
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= IT, XM, S3M, and MOD player library
USES= gmake
OPTIONS_DEFINE= ALLEGRO
OPTIONS_SUB= yes
ALLEGRO_DESC= Enable allegro support
ALLEGRO_LIB_DEPENDS= liballeg.so:devel/allegro
ALLEGRO_MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`" \
LINK_ALLEGRO="`allegro-config --libs` -lm"
ALLEGRO_CONFLICTS= dumb
ALLEGRO_MAKE_ARGS_OFF= _PORT_ALLEGRO_CFLAGS=
ALLEGRO_CONFLICTS_OFF= dumb-allegro
# libdumb.a is linked into libaudiere.so from audio/audiere.
CFLAGS+= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's|_INSTALL_PATH := |&$${DESTDIR}|' ${WRKSRC}/Makefile
do-configure:
@${ECHO_CMD} 'include make/unix.inc' > ${WRKSRC}/make/config.txt
@${ECHO_CMD} 'ALL_TARGETS := core core-examples core-headers' >> ${WRKSRC}/make/config.txt
do-configure-ALLEGRO-on:
@${ECHO_CMD} 'ALL_TARGETS += allegro allegro-examples allegro-headers' >> ${WRKSRC}/make/config.txt
.include <bsd.port.mk>
|