mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
bb271f0bf7
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# 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
|
|
|
|
USES= gmake
|
|
|
|
OPTIONS_DEFINE= ALLEGRO
|
|
OPTIONS_SUB= yes
|
|
ALLEGRO_DESC= Enable allegro support
|
|
|
|
ALLEGRO_LIB_DEPENDS= liballeg.so:${PORTSDIR}/devel/allegro
|
|
ALLEGRO_MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`" \
|
|
LINK_ALLEGRO="`allegro-config --libs` -lm"
|
|
ALLEGRO_CONFLICTS= dumb-[0-9]*
|
|
ALLEGRO_MAKE_ARGS_OFF= _PORT_ALLEGRO_CFLAGS=
|
|
ALLEGRO_CONFLICTS_OFF= dumb-allegro-[0-9]*
|
|
|
|
CFLAGS_amd64= -fPIC
|
|
CFLAGS_ia64= -fPIC
|
|
CFLAGS_sparc64= -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>
|