summaryrefslogtreecommitdiffstats
path: root/audio/schism/Makefile
blob: 424981522ff3c066e3dd60d79d98db65f8ae18d3 (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
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	Schism Tracker
# Date created:				26 May 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	schism
DISTVERSION=	0.2a
CATEGORIES=	audio
MASTER_SITES=	http://rigelseven.com/schism/dl/

MAINTAINER=	ehaupt@critical.ch
COMMENT=	A module tracker editor/player resembling impulse tracker

ONLY_FOR_ARCHS=	i386

USE_BZIP2=	yes
USE_SDL=	yes
USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes
USE_REINPLACE=	yes
USE_GCC=	3.4+

# Dies with bus error unless building debug version
CXXFLAGS=	-g
CFLAGS=		-g

CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${CPPFLAGS}" \
		CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
		CPPFLAGS="${CPPFLAGS}" \
		LDFLAGS="${LDFLAGS}"

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.pre.mk>

post-patch:
.if ${OSVERSION} < 500000
	@${REINPLACE_CMD} -e 's|getopt\.h|unistd\.h|' \
		${WRKSRC}/src/bin2h.c
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud