aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mpgtx/Makefile
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-12-24 12:28:25 +0800
committerdwcjr <dwcjr@FreeBSD.org>2001-12-24 12:28:25 +0800
commit07d0bcbb5a9d29e906d98f54a23b2750ffa7a94f (patch)
treef575a74c0ed3894f9e5a5e9c9a64af6092d54c52 /multimedia/mpgtx/Makefile
parente4bfef9dac0c70817fc9cad6640ba224c4a6f6a9 (diff)
downloadfreebsd-ports-gnome-07d0bcbb5a9d29e906d98f54a23b2750ffa7a94f.tar.gz
freebsd-ports-gnome-07d0bcbb5a9d29e906d98f54a23b2750ffa7a94f.tar.zst
freebsd-ports-gnome-07d0bcbb5a9d29e906d98f54a23b2750ffa7a94f.zip
Update to 1.1.1
PR: 33130 Submitted by: tkato@prontomail.com
Diffstat (limited to 'multimedia/mpgtx/Makefile')
-rw-r--r--multimedia/mpgtx/Makefile43
1 files changed, 24 insertions, 19 deletions
diff --git a/multimedia/mpgtx/Makefile b/multimedia/mpgtx/Makefile
index 5bedd326c4ee..ce4c6ea7aefb 100644
--- a/multimedia/mpgtx/Makefile
+++ b/multimedia/mpgtx/Makefile
@@ -7,34 +7,39 @@
#
PORTNAME= mpgtx
-PORTVERSION= 1.0
+PORTVERSION= 1.1.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-${PORTVERSION}-1-src
+DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}-src
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-ALL_TARGET= shared
-MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- INSTALL_MAN="${INSTALL_MAN}"
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX}
+ALL_TARGET= default
MAN1= mpgtx.1 tagmp3.1
-MLINKS= mpgtx.1 mpgdemux.1 \
+MLINKS= mpgtx.1 mpgcat.1 \
+ mpgtx.1 mpgdemux.1 \
+ mpgtx.1 mpginfo.1 \
mpgtx.1 mpgjoin.1 \
- mpgtx.1 mpgsplit.1 \
- mpgtx.1 mpgcat.1 \
- mpgtx.1 mpginfo.1
-
-post-install:
- @(cd ${PREFIX}/bin ; \
- ${LN} -sf mpgtx mpgdemux ; \
- ${LN} -sf mpgtx mpgjoin ; \
- ${LN} -sf mpgtx mpgsplit ; \
- ${LN} -sf mpgtx mpgcat ; \
- ${LN} -sf mpgtx mpginfo ; \
- ${LN} -sf mpgtx tagmp3)
+ mpgtx.1 mpgsplit.1
+
+pre-patch:
+ @${PERL} -pi -e 's|CFLAGS=|CFLAGS\+=|g ; \
+ s|\$$cflags \$$optimization_cflags|\$$cflags|g ; \
+ s|g\+\+|${CXX}|g' ${WRKSRC}/configure
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mpgtx ${PREFIX}/bin
+.for link in mpgcat mpgdemux mpginfo mpgjoin mpgsplit tagmp3
+ ${LN} -sf mpgtx ${PREFIX}/bin/${link}
+.endfor
+ ${INSTALL_MAN} ${WRKSRC}/man/mpgtx.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/tagmp3.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>