aboutsummaryrefslogtreecommitdiff
path: root/audio/komposter/Makefile
blob: 3ccc5e92426c0e2ed8813bbcdaeed3309ec65b26 (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
42
43
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>

PORTNAME=	komposter
DISTVERSION=	g20201211
CATEGORIES=	audio

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Lightweight music composing system

LICENSE=	GPLv2

LIB_DEPENDS=	libfreetype.so:print/freetype2

USES=		autoreconf compiler:c++11-lang gl libtool openal pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	electronoora
GH_TAGNAME=	f75eeb7
USE_GL=		gl glu glut
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-optimizations \
		--disable-silent-rules \
		--without-auto-arch

CFLAGS_i386=	-Wl,-znotext

DESKTOP_ENTRIES=	"Komposter" \
			"${COMMENT}" \
			"${DATADIR}/komposter_icon.png" \
			"${PORTNAME}" \
			"Audio;" \
			false

OPTIONS_DEFINE=	EXAMPLES

post-extract:
	@${RM} ${WRKSRC}/resources/libfreetype* ${WRKSRC}/resources/komposter.*
	@${RM} -rf ${WRKSRC}/resources/GLUT.framework

post-install:
	(cd ${WRKSRC}/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>