2013-05-12 06:05:03 +00:00
|
|
|
# Created by: Kai Wang <kaiw27@gmail.com>
|
2007-02-09 04:12:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mpd
|
|
|
|
PORTVERSION= 1.0.1
|
2008-03-23 23:03:18 +00:00
|
|
|
PORTREVISION= 2
|
2007-02-09 04:12:38 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://www.cs.arizona.edu/mpd/download/ \
|
|
|
|
http://crypto.riken.go.jp/pub/NetBSD/packages/distfiles/mpd-language/
|
|
|
|
DISTNAME= ${PORTNAME}.${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= kaiw27@gmail.com
|
2014-01-29 14:54:52 +00:00
|
|
|
COMMENT= Concurrent programming language
|
2007-02-09 04:12:38 +00:00
|
|
|
|
2014-01-29 14:54:52 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2007-02-09 04:12:38 +00:00
|
|
|
ONLY_FOR_ARCHS_REASON= uses assembly code for the target machine
|
|
|
|
|
2007-02-09 04:38:26 +00:00
|
|
|
# net/mpd
|
2007-02-09 14:53:32 +00:00
|
|
|
CONFLICTS= mpd-[^1]*
|
2007-02-09 04:38:26 +00:00
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
|
2007-02-09 04:12:38 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2013-05-12 06:05:03 +00:00
|
|
|
OPTIONS_DEFINE= X11 DOCS
|
|
|
|
OPTIONS_DEFAULT= X11
|
2007-02-09 04:12:38 +00:00
|
|
|
|
|
|
|
MAN1= mpd.1 mpdl.1 mpdm.1 mpdprof.1
|
|
|
|
MAN3= mpdanimator.3 mpdgetopt.3 mpdwin.3
|
|
|
|
MAN5= mpdmap.5 mpdtrace.5
|
|
|
|
|
2013-09-20 19:53:09 +00:00
|
|
|
NO_STAGE= yes
|
2007-02-09 04:12:38 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-05-12 06:05:03 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MX11}
|
2007-02-09 04:12:38 +00:00
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11=""
|
2008-03-23 23:03:18 +00:00
|
|
|
USE_XORG= x11
|
2007-02-09 04:12:38 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee \
|
|
|
|
"s%^(CCPATH =) .*%\1 `${WHICH} ${CC}`%; \
|
|
|
|
s%^(MPDSRC =) .*%\1 ${WRKSRC}%; \
|
|
|
|
s%^((MPD(CMD|LIB)|MAN[135]) =) /usr/local%\1 ${PREFIX}%" \
|
|
|
|
${WRKSRC}/Configuration
|
2013-05-12 06:05:03 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
@${REINPLACE_CMD} -Ee 's%^(XINCL =) .*%\1 ${LOCALBASE}/include%' \
|
2007-03-23 00:50:26 +00:00
|
|
|
${WRKSRC}/Configuration
|
|
|
|
.else
|
2007-02-09 04:12:38 +00:00
|
|
|
@${REINPLACE_CMD} -Ee 's%^(XINCL =) .*%\1%' ${WRKSRC}/Configuration
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/lib/mpd
|
|
|
|
|
|
|
|
post-install:
|
2013-05-12 06:05:03 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-02-09 04:12:38 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${CP} -pR ${WRKSRC}/vsuite/examples/* ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|