aboutsummaryrefslogtreecommitdiffstats
path: root/audio/schism/Makefile
blob: 5659fa7bd32afafa043a29a9740e736646015831 (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   schism
PORTVERSION=    20160913
CATEGORIES= audio

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Module tracker editor/player resembling impulse tracker

LICENSE=    GPLv2

ONLY_FOR_ARCHS= i386 amd64

USES=       autoreconf python compiler:c++11-lib
USE_SDL=    sdl
USE_XORG=   x11 xext xv
GNU_CONFIGURE=  yes

USE_GITHUB= yes
GH_ACCOUNT= schismtracker
GH_PROJECT= schismtracker

PLIST_FILES=    bin/${PORTNAME}

# if you touch these make sure configure finds X11/XKBlib.h presence
LDFLAGS+=   `sdl-config --libs`
LIBS+=      -lm -lX11
CPPFLAGS+=  -I${LOCALBASE}/include

post-patch:
    @${REINPLACE_CMD} \
        -e "s|^\(AC_INIT.*\)\[last_git_commit\]|\1${PORTVERSION}|" \
        -e '/^m4_define.*last_git_commit.*git/d' \
            ${WRKSRC}/configure.ac
    @${REINPLACE_CMD} -e '/^schismtracker_LDADD/d' ${WRKSRC}/Makefile.am

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

.include <bsd.port.mk>