Fix X11 move (/usr/local), fake.

Use MASTER_SITES0.
Note that timidity is fairly old, a port of timidity++ might be a good idea.
This commit is contained in:
espie 2000-03-24 22:39:00 +00:00
parent 78de839215
commit a7f200b978
2 changed files with 17 additions and 30 deletions

View File

@ -1,48 +1,35 @@
# $OpenBSD: Makefile,v 1.12 2000/03/24 22:11:35 espie Exp $
BROKEN= compile errers
#motif_i.c:53: Xm/Xm.h: No such file or directory
#motif_i.c:54: Xm/Form.h: No such file or directory
#motif_i.c:55: Xm/Text.h: No such file or directory
#motif_i.c:56: Xm/PushB.h: No such file or directory
#motif_i.c:57: Xm/Label.h: No such file or directory
#motif_i.c:58: Xm/Scale.h: No such file or directory
#motif_i.c:59: Xm/List.h: No such file or directory
#motif_i.c:60: Xm/Frame.h: No such file or directory
#motif_i.c:61: Xm/RowColumn.h: No such file or directory
#motif_i.c:62: Xm/CascadeB.h: No such file or directory
#motif_i.c:63: Xm/FileSB.h: No such file or directory
#motif_i.c:64: Xm/FileSB.h: No such file or directory
#motif_i.c:65: Xm/ToggleB.h: No such file or directory
# $OpenBSD: Makefile,v 1.13 2000/03/24 22:39:00 espie Exp $
DISTNAME= timidity-0.2i
CATEGORIES= audio
NEED_VERSION= 1.91
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/misc/hardware/soundcard/gus/ \
http://www.goice.co.jp/member/mo/timidity/dist/
MASTER_SITES= http://www.goice.co.jp/member/mo/timidity/dist/
MASTER_SITES0= ftp://ftp.kiarchive.ru/pub/misc/hardware/soundcard/gus/
NO_CDROM= "Uses copyrighted patches"
TIINS= goemon.tgz
DISTFILES= ${TIINS} ${DISTNAME}.tar.gz
DISTFILES= ${TIINS}:0 ${DISTNAME}.tar.gz
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= ports@openbsd.org
LICENSE_TYPE= "GPL NONE"
PERMIT_PACKAGE_CDROM= NO
PERMIT_PACKAGE_FTP= NO
PERMIT_DISTFILES_CDROM= NO
PERMIT_DISTFILES_FTP= NO
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= No
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= No
USE_MOTIF= yes
USE_MOTIF= Yes
INSTALL_TARGET= install.all
FAKE= Yes
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
post-install:
@cd ${PREFIX}/lib/timidity && \
${TAR} -zxf ${DISTDIR}/${TIINS} && \
tar zxf ${DISTDIR}/${TIINS} && \
cp goemon.cfg goemon.cfg.bak && \
sed 's=dir goemon=dir ${PREFIX}/lib/timidity/goemon=' \
sed 's=dir goemon=dir ${TRUEPREFIX}/lib/timidity/goemon=' \
< goemon.cfg.bak > goemon.cfg && \
rm -f goemon.cfg.bak

View File

@ -16,17 +16,17 @@ diff -u ../timidity-0.2i/Makefile ./Makefile
# Where to install the executable
-BIN_DIR = /usr/local/bin
+BIN_DIR = ${PREFIX}/bin
+BIN_DIR = ${DESTDIR}${PREFIX}/bin
# Where to install the manual pages
-MAN_DIR = /usr/local/man/man1
+MAN_DIR = ${PREFIX}/man/man1
+MAN_DIR = ${DESTDIR}${PREFIX}/man/man1
# Where to install the patches, config files, and MIDI files.
# If you change this, it's a good idea to recompile the binary,
# or you'll need to invoke timidity with the -L option.
-TIMID_DIR = /usr/local/lib/timidity
+TIMID_DIR = ${PREFIX}/lib/timidity
+TIMID_DIR = ${DESTDIR}${PREFIX}/lib/timidity
# Where to install the Tcl code, if you use the Tcl code that is.
TCL_DIR = $(TIMID_DIR)
@ -70,8 +70,8 @@ diff -u ../timidity-0.2i/Makefile ./Makefile
+# Select the MOTIF interface
+SYSTEM += -DMOTIF
+SYSEXTRAS += motif_c.c motif_i.c motif_p.c
+EXTRAINCS += -I/usr/local/include -L/usr/local/lib
+EXTRAINCS += -I/usr/X11R6/include -L/usr/X11R6/lib
+EXTRAINCS += -I/usr/include/X11
+EXTRALIBS += -lXm -lXt -lX11
+# Solaris needs libgen?
#EXTRALIBS += -lgen