1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/audio/protracker/Makefile
2019-04-25 08:33:07 +00:00

55 lines
1.5 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
PORTNAME= protracker
PORTVERSION= 2.3d.r${SVN_REV}
CATEGORIES= audio
MASTER_SITES= LOCAL/ehaupt
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-extras-1.tar.gz
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Amiga ProTracker clone
LICENSE= WTFPL
LICENSE_FILE= ${WRKSRC}/src/COPYING.txt
USES= localbase:ldflags sdl
USE_SDL= sdl2
SVN_URL= https://svn.code.sf.net/p/protracker/code/trunk
SVN_REV= 180
CFLAGS_i386+= -msse2
LDFLAGS+= -lSDL2 -lm
PLIST_FILES= bin/protracker man/man1/protracker.1.gz \
share/applications/protracker.desktop \
share/pixmaps/protracker.png
do-build:
${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/src/*.c \
${WRKSRC}/src/gfx/*.c -o ${WRKSRC}/protracker
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${MANPREFIX}/man/man1 \
${STAGEDIR}${DESKTOPDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/${PORTNAME}-extras-1/${PORTNAME}.1 \
${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-extras-1/*.desktop \
${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-extras-1/*.png \
${STAGEDIR}${PREFIX}/share/pixmaps
dist:
svn checkout -r ${SVN_REV} ${SVN_URL} ${WRKSRC}
${TAR} -C ${WRKDIR} -czpf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
--exclude .svn ${DISTNAME}
cklatest:
@${ECHO_CMD} "We got: ${SVN_REV}"
@${ECHO_CMD} -n "There is: "
@svn info ${SVN_URL} | ${SED} -n 's|^Revision:\ \([0-9]*\)|\1|p'
.include <bsd.port.mk>