blob: cf47e9b63cf42d81bf088f8294c1832c23b5bd18 (
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
48
49
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= schismtracker
PORTVERSION= 20181223
CATEGORIES= audio
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Module tracker editor/player resembling impulse tracker
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 i386
USES= autoreconf python compiler:c++11-lib desktop-file-utils
USE_SDL= sdl
USE_XORG= x11 xext xv
USE_GITHUB= yes
GNU_CONFIGURE= yes
# if you touch these make sure configure finds X11/XKBlib.h presence
LDFLAGS+= `sdl-config --libs`
LIBS+= -lm -lX11
CPPFLAGS+= -I${LOCALBASE}/include
PLIST_FILES= bin/schismtracker man/man1/schismtracker.1.gz \
share/applications/schism.desktop \
share/pixmaps/schism-icon-128.png \
share/pixmaps/schism-itf-icon-128.png
# changes only affect macOS
PORTSCOUT= ignore:20190614
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
post-install:
${INSTALL_DATA} ${WRKSRC}/sys/fd.org/*.desktop ${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/icons/schism-icon-128.png \
${WRKSRC}/icons/schism-itf-icon-128.png \
${STAGEDIR}${PREFIX}/share/pixmaps
.include <bsd.port.mk>
|