1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- Use new LIB_DEPENDS syntax
- Convert USE_BZIP2 to USES
This commit is contained in:
Dmitry Marakasov 2014-05-10 00:48:44 +00:00
parent 60b01195b0
commit bd3838f2a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353559
10 changed files with 20 additions and 35 deletions

View File

@ -9,6 +9,5 @@ COMMENT= Emacs interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_FILES= ${TIMID_LIBDIR}/interface_e.so ${ELISPDIR}/timidity.el
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -9,6 +9,5 @@ COMMENT= Gtk interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_FILES= bin/gtkmidi ${TIMID_LIBDIR}/interface_g.so
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -9,7 +9,6 @@ COMMENT= Motif interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_FILES= bin/xmmidi ${TIMID_LIBDIR}/interface_m.so
NO_STAGE= yes
post-configure:
@${MV} ${WRKSRC}/interface/Makefile ${WRKSRC}/interface/Makefile.orig

View File

@ -10,6 +10,5 @@ COMMENT= Slang interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_FILES= ${TIMID_LIBDIR}/interface_s.so
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -7,6 +7,5 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Tcl/Tk interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -7,6 +7,5 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Xaw interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -7,6 +7,5 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= X11AMP skin interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
NO_STAGE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -19,12 +19,9 @@ RUN_DEPENDS= ${LOCALBASE}/share/timidity/timidity.cfg:${PORTSDIR}/audio/eawpats
CONFLICTS= timidity-0.*
.endif
USES= gmake
NO_STAGE= yes
USE_BZIP2= yes
USES= tar:bzip2 gmake
GNU_CONFIGURE= yes
PLIST_SUB+= TIMID_LIBDIR=${TIMID_LIBDIR} EUCJP_LOCALE=${EUCJP_LOCALE}
EUCJP_LOCALE= ja_JP.eucJP
@ -47,10 +44,6 @@ LDFLAGS+= -export-dynamic
DOCFILES= README.alsaseq README.dl README.m2m README.mts README.sf
DOCLANG= C ja_JP.eucJP
MANLANG= "" ja
MAN1= timidity.1
MAN5= timidity.cfg.5
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--without-x --disable-spectrogram --disable-wrd --disable-dynamic
.else
@ -70,13 +63,13 @@ CONFIGURE_ARGS+=--enable-audio=oss,vorbis
.endif
pre-su-install:
@${MKDIR} ${PREFIX}/share/timidity ${PREFIX}/${TIMID_LIBDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/timidity ${STAGEDIR}${PREFIX}/${TIMID_LIBDIR}
post-install::
${INSTALL_MAN} ${WRKSRC}/doc/ja_JP.eucJP/timidity.1 \
${PREFIX}/man/ja/man1
${STAGEDIR}${PREFIX}/man/ja/man1
${INSTALL_MAN} ${WRKSRC}/doc/ja_JP.eucJP/timidity.cfg.5 \
${PREFIX}/man/ja/man5
${STAGEDIR}${PREFIX}/man/ja/man5
.else # defined(PKGNAMESUFFIX)
.include "${MASTERDIR}/Makefile.interface"
.endif # !defined(PKGNAMESUFFIX)
@ -84,13 +77,10 @@ post-install::
post-install::
.if ${PORT_OPTIONS:MDOCS} && defined(DOCFILES)
.for lang in ${DOCLANG}
${MKDIR} ${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++
${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++
cd ${WRKSRC}/doc/${lang} && ${INSTALL_DATA} ${DOCFILES} \
${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++/
${STAGEDIR}${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++/
.endfor
.endif
.if exists(${PKGMESSAGE})
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>

View File

@ -14,7 +14,7 @@ INTERFACE= ${PKGNAMESUFFIX:S/^-//}
DESCR= ${.CURDIR}/pkg-descr
.if exists(${.CURDIR}/pkg-plist)
PLIST= ${.CURDIR}/pkg-plist
PLIST= ${.CURDIR}/pkg-plist
.else
PLIST= ${NONEXISTENT}
.endif
@ -58,7 +58,7 @@ CONFIGURE_ARGS+=--with-includes=${LOCALBASE}/include \
--enable-ncurses
LDFLAGS+= -L${LOCALBASE}/lib
LIB_DEPENDS+= slang.2:${PORTSDIR}/japanese/libslang
LIB_DEPENDS+= libslang.so:${PORTSDIR}/japanese/libslang
.endif
.if ${INTERFACE} == "tcltk"
@ -70,14 +70,14 @@ DOCFILES= README.tk
DOCLANG= C ja_JP.eucJP
.if defined(JAPANESE)
LIB_DEPENDS+= tk80jp.1:${PORTSDIR}/japanese/tk80
LIB_DEPENDS+= libtk80jp.so:${PORTSDIR}/japanese/tk80
CONFIGURE_ARGS+= --with-tcl-includes=${LOCALBASE}/include/tcl8.0jp \
--with-tk-includes=${LOCALBASE}/include/tk8.0jp \
--with-tcl-libs=${LOCALBASE}/lib --with-tk-libs=${LOCALBASE}/lib
CONFIGURE_ENV+= WISH=wish8.0jp
.else
LIB_DEPENDS+= tk84:${PORTSDIR}/x11-toolkits/tk84
LIB_DEPENDS+= libtk84.so:${PORTSDIR}/x11-toolkits/tk84
CONFIGURE_ARGS+= --with-tcl-includes=${LOCALBASE}/include/tcl8.4 \
--with-tk-includes=${LOCALBASE}/include/tk8.4 \
@ -110,16 +110,16 @@ DOCLANG= C ja_JP.eucJP
post-install::
.if ${INTERFACE} == "emacs"
@${MKDIR} ${PREFIX}/${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/interface/timidity.el ${PREFIX}/${ELISPDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/interface/timidity.el ${STAGEDIR}${PREFIX}/${ELISPDIR}
.endif
.if ${INTERFACE} == "xaw"
@${MKDIR} ${PREFIX}/lib/X11/${EUCJP_LOCALE}/app-defaults
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/${EUCJP_LOCALE}/app-defaults
${INSTALL_DATA} ${WRKSRC}/TiMidity.ad \
${PREFIX}/lib/X11/app-defaults/TiMidity
${STAGEDIR}${PREFIX}/lib/X11/app-defaults/TiMidity
${INSTALL_DATA} ${WRKSRC}/TiMidity-uj.ad \
${PREFIX}/lib/X11/${EUCJP_LOCALE}/app-defaults/TiMidity
${STAGEDIR}${PREFIX}/lib/X11/${EUCJP_LOCALE}/app-defaults/TiMidity
.endif
.if defined(LINK)
${LN} -sf ${PREFIX}/bin/timidity ${PREFIX}/bin/${LINK}
${LN} -sf ${PREFIX}/bin/timidity ${STAGEDIR}${PREFIX}/bin/${LINK}
.endif

View File

@ -1,4 +1,8 @@
bin/timidity
man/ja/man1/timidity.1.gz
man/ja/man5/timidity.cfg.5.gz
man/man1/timidity.1.gz
man/man5/timidity.cfg.5.gz
%%PORTDOCS%%%%DOCSDIR%%/README.alsaseq
%%PORTDOCS%%%%DOCSDIR%%/README.dl
%%PORTDOCS%%%%DOCSDIR%%/README.m2m
@ -11,7 +15,5 @@ bin/timidity
%%PORTDOCS%%share/doc/ja/timidity++/README.sf
%%PORTDOCS%%@dirrm share/doc/ja/timidity++/
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@exec mkdir -p %D/%%TIMID_LIBDIR%%
@exec mkdir -p %D/share/timidity
@dirrmtry %%TIMID_LIBDIR%%
@dirrmtry share/timidity