freebsd-ports/audio/umodplayer/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

38 lines
990 B
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= umodplayer
PORTVERSION= 0.${DISTVERSION:tl}
DISTVERSION= B5.1
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/UModPlayer%20B5
DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Console module player
LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug \
libao.so:${PORTSDIR}/audio/libao
BUILD_DEPENDS= ${LOCALBASE}/lib/libaiff.a:${PORTSDIR}/audio/libaiff
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e \
'/CFLAGS/s| =| +=| ; \
/CFLAGS/s| -O2| $$(CPPFLAGS)|g ; \
/^@/d' ${WRKSRC}/${MAKEFILE}.in
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
.include <bsd.port.mk>