mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
66 lines
1.5 KiB
Makefile
66 lines
1.5 KiB
Makefile
# New ports collection makefile for: adplay
|
|
# Date created: 10 August 2004
|
|
# Whom: Emanuel Haupt <ehaupt@critical.ch>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= adplay
|
|
PORTVERSION= 1.5
|
|
PORTREVISION= 4
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
|
MASTER_SITE_SUBDIR= adplug
|
|
DISTFILES= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX} \
|
|
${DBFILE}
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= AdLib player using adplug library
|
|
|
|
LIB_DEPENDS= adplug-2.0.1.0:${PORTSDIR}/audio/libadplug
|
|
|
|
GNU_CONFIGURE= yes
|
|
WANT_SDL= yes
|
|
USE_GCC= 3.4+
|
|
|
|
DBFILE= adplug.db
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libbinio
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS= --sharedstatedir=${DATADIR}
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
|
CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
|
|
CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
MAN1= adplay.1
|
|
PLIST_FILES= bin/adplay %%DATADIR%%/adplug.db
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
OPTIONS= SDL "Build with SDL output support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_SDL)
|
|
USE_SDL= sdl mixer
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 500000
|
|
BROKEN= depends on audio/libadplug
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^\(adplug_data_dir.*\)/.*|\1|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
@${RM} ${WRKSRC}/src/getopt.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/adplay ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/adplay.1 ${MANPREFIX}/man/man1
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${DISTDIR}/${DBFILE} ${DATADIR}
|
|
|
|
.include <bsd.port.post.mk>
|