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

PORTNAME=   modplugplay
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= audio
MASTER_SITES=   LOCAL/ehaupt

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Command-line music mod player using libmodplug

LICENSE=    GPLv2

LIB_DEPENDS=    libmodplug.so:audio/libmodplug

PLIST_FILES=    bin/modplugplay man/man1/modplugplay.1.gz

CFLAGS+=    -I${LOCALBASE}/include/libmodplug -L${LOCALBASE}/lib
LDFLAGS+=   -lmodplug

do-build:
    ${CXX} ${WRKSRC}/${PORTNAME}.c ${CFLAGS} ${LDFLAGS} \
        -o ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>