mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
8a8961642f
===> Patching for ump-1.10_12 ===> Applying distribution patches for ump-1.10_12 ===> Applying extra patch /usr/ports/audio/timidity++/files/patch-Makefile.in ===> Applying extra patch /usr/ports/audio/timidity++/files/patch-interface__Makefile.in ===> Applying extra patch /usr/ports/audio/timidity++/files/patch-interface__tk_c.c ===> Applying extra patch /usr/ports/audio/timidity++/files/patch-timidity__Makefile.in 7 out of 10 hunks failed--saving rejects to timidity/Makefile.in.rej *** [do-patch] Error code 7 Reported by: pkg-fallout
85 lines
2.6 KiB
Makefile
85 lines
2.6 KiB
Makefile
# Created by: Leland Wang <llwang@infor.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ump
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 12
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/timidity/TiMidity%2B%2B/TiMidity%2B%2B-${TIMIDITY_VERSION}:timidity \
|
|
https://pubweb.bnl.gov/~hoff/midi/1.10/:ump \
|
|
ftp://ftp.fu-berlin.de/unix/network/www/netscape/sdk/plugin/unix/:plugin \
|
|
ftp://ftp.fh-wolfenbuettel.de/pub/www/netscape/sdk/plugin/unix/:plugin
|
|
DISTFILES= ${BZ2DIST} ${ZDIST}
|
|
EXTRACT_ONLY= ${BZ2DIST:C/:.*$//}
|
|
|
|
PATCH_SITES= http://www.onicos.com/staff/iz/timidity/dist/
|
|
PATCHFILES= ump-patch-1.gz ump-patch-2.gz ump-patch-3.gz ump-patch-4.gz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Unix MIDI Plugin based on TiMidity++
|
|
|
|
BROKEN= Fails to patch
|
|
|
|
LIB_DEPENDS= libarc.so:${PORTSDIR}/archivers/libarc
|
|
RUN_DEPENDS= ${LOCALBASE}/share/timidity/timidity.cfg:${PORTSDIR}/audio/eawpats
|
|
|
|
LATEST_LINK= UNIXMidiPlugin
|
|
CONFLICTS= ump-0.8.[0-9]*
|
|
|
|
BZ2DIST= TiMidity++-${TIMIDITY_VERSION}.tar.bz2:timidity
|
|
ZDIST= unix-sdk-3.0b5.tar.Z:plugin ump_with_volume.tar.Z:ump timdiffs.tar.Z:ump
|
|
|
|
TIMIDITY_VERSION= 2.13.2
|
|
|
|
USES= tar:bzip2 gmake webplugin:native
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-ump --with-default-path=${LOCALBASE}/share/timidity
|
|
LDFLAGS+= -export-dynamic
|
|
USE_XORG= xpm xmu
|
|
WANT_GNOME= yes
|
|
# CONFIGURE_ARGS+= --enable-motif
|
|
EXTRA_PATCHES= ${PORTSDIR}/audio/timidity++/files/*
|
|
PKGDIR= ${.CURDIR}
|
|
WRKSRC= ${WRKDIR}/TiMidity++-${TIMIDITY_VERSION}
|
|
BUILD_WRKSRC= ${WRKSRC}/ump
|
|
EXTRACT_AFTER_ARGS= --exclude '*/libarc/*' \
|
|
--exclude '*/utils/mblock.h' --exclude '*/utils/memb.h'
|
|
ALL_TARGET= ump
|
|
|
|
WEBPLUGIN_FILES=ump.so
|
|
|
|
# USE_MOTIF= yes
|
|
# CONFIGURE_ENV= MOTIFLIB="${MOTIFLIB}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
USE_GNOME= esound
|
|
CONFIGURE_ARGS+= --enable-audio=oss,esd
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-audio=oss
|
|
.endif
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}/ump
|
|
@for f in ${ZDIST:C/:.*$//}; do \
|
|
if ! (cd ${WRKSRC}/ump && tar -Zxf ${DISTDIR}/${DIST_SUBDIR}/$${f}); \
|
|
then \
|
|
exit 1; \
|
|
fi \
|
|
done
|
|
@${CP} ${WRKSRC}/ump/PluginSDK30b5/include/*.h ${WRKSRC}/ump/PluginSDK30b5/common/npunix.c ${WRKSRC}/ump
|
|
|
|
post-configure:
|
|
@${MV} ${WRKSRC}/interface/Makefile ${WRKSRC}/interface/Makefile.orig
|
|
@${SED} -e 's^m_so_libs = $$^m_so_libs = -L${LOCALBASE}/lib ${MOTIFLIB} -lXt -lXext -lSM -lICE -lX11 ^' \
|
|
-e 's^dynamic_targets = $$^dynamic_targets = interface_m.so^' \
|
|
${WRKSRC}/interface/Makefile.orig > ${WRKSRC}/interface/Makefile
|
|
@cd ${WRKSRC}; ${SETENV} CONFIG_HEADERS='' CONFIG_FILES=ump/Makefile ${SH} ./config.status
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${WEBPLUGIN_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ump/ump.so ${STAGEDIR}${WEBPLUGIN_DIR}
|
|
|
|
.include <bsd.port.post.mk>
|