c43ea3e283
20191013. PR: 241264 Submitted by: linimon Discussed with: fox MFH: 2019Q4 (blanket)
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fasttracker2
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.00
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= https://16-bits.org/ \
|
|
LOCAL/ehaupt
|
|
DISTNAME= ft2-clone-${DISTVERSIONPREFIX}${PORTVERSION}-code
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Fasttracker II clone
|
|
|
|
LICENSE= BSD3CLAUSE CC-BY-NC-SA-4.0
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/src/LICENSE.txt
|
|
LICENSE_FILE_CC-BY-NC-SA-4.0= ${WRKSRC}/src/gfxdata/bmp/LICENSE.txt
|
|
|
|
USES= cmake compiler dos2unix iconv:wchar_t localbase:ldflags sdl zip
|
|
USE_SDL= sdl2
|
|
|
|
WRKSRC= ${WRKDIR}/ft2-clone-code
|
|
|
|
DESKTOP_ENTRIES="FastTracker II" \
|
|
"${COMMENT}" \
|
|
"${PREFIX}/share/pixmaps/ft2-clone.ico" \
|
|
"fasttracker2" \
|
|
"" \
|
|
false
|
|
|
|
PLIST_FILES= bin/fasttracker2 share/pixmaps/ft2-clone.ico
|
|
|
|
OPTIONS_DEFINE= ALSA
|
|
OPTIONS_DEFAULT=ALSA
|
|
|
|
LDFLAGS+= -lSDL2 -lpthread -lstdc++ -lm -liconv
|
|
|
|
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
|
|
ALSA_CFLAGS+= -D__LINUX_ALSA__
|
|
ALSA_LDFLAGS+= -lasound
|
|
|
|
CFLAGS_i386+= -msse2
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# clang reports:
|
|
# error: invalid argument '-std=c99' not allowed with 'C++'
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
USE_CSTD= c99
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release/other/ft2-clone \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/src/gfxdata/icon/ft2-clone.ico \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
|
|
|
.include <bsd.port.post.mk>
|