mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
741aa71483
Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
# New ports collection makefile for: mt-daapd
|
|
# Date created: 10 March 2004
|
|
# Whom: Meno Abels <meno.abels@adviser.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mt-daapd
|
|
PORTVERSION= 0.2.4.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio japanese
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= mark@foster.cc
|
|
COMMENT= Multithread daapd yet another Server for Apple iTunes
|
|
|
|
#BUILD_DEPENDS= ${LOCALBASE}/lib/libgdbm.a:${PORTSDIR}/databases/gdbm
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
|
|
LIB_DEPENDS+= id3tag.0:${PORTSDIR}/audio/libid3tag
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
CONFIGURE_ARGS= --with-id3tag=${PREFIX} --with-gdbm-includes=${LOCALBASE}/include
|
|
|
|
USE_AUTOTOOLS= autoheader:262 autoconf:262:env
|
|
|
|
USE_ICONV= yes
|
|
PATCH_SITES+= http://www.apionet.or.jp/~tomi/
|
|
PATCH_SITES+= ${MASTER_SITE_LOCAL}
|
|
PATCHFILES+= mt-daapd-0.2.4.1-cp932.patch
|
|
PATCH_DIST_STRIP+= -p1
|
|
|
|
DAAPD_USER?= daapd
|
|
DAAPD_GROUP?= daapd
|
|
DAAPD_DBDIR?= /var/db/${PORTNAME}
|
|
USE_RC_SUBR= mt-daapd.sh
|
|
|
|
PLIST_SUB+= DAAPD_DBDIR=${DAAPD_DBDIR}
|
|
SUB_LIST+= USER=${DAAPD_USER} GROUP=${DAAPD_GROUP} DAAPD_DBDIR=${DAAPD_DBDIR}
|
|
SUB_FILES+= pkg-install pkg-deinstall mt-daapd.conf
|
|
|
|
pre-everything::
|
|
@${ECHO_CMD} "Define vars below if you need:"
|
|
@${ECHO_CMD} "DAAPD_USER=${DAAPD_USER} (default: daapd)"
|
|
@${ECHO_CMD} "DAAPD_GROUP=${DAAPD_GROUP} (default: daapd)"
|
|
@${ECHO_CMD} "DAAPD_DBDIR=${DAAPD_DBDIR} (default: /var/db/${PORTNAME})"
|
|
|
|
pre-install:
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in README AUTHORS COPYING CREDITS \
|
|
ChangeLog INSTALL NEWS TODO
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
@[ -f ${PREFIX}/etc/mt-daapd.conf ] || \
|
|
${INSTALL_DATA} ${WRKDIR}/mt-daapd.conf \
|
|
${PREFIX}/etc/mt-daapd.conf
|
|
@${INSTALL_DATA} ${WRKDIR}/mt-daapd.conf ${PREFIX}/etc/mt-daapd.conf.sample
|
|
@${MKDIR} ${DAAPD_DBDIR}
|
|
@${MKDIR} ${DATADIR}
|
|
@${CHMOD} 0755 ${DAAPD_DBDIR}
|
|
@${CHMOD} 0755 ${DATADIR}
|
|
@${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DAAPD_DBDIR}
|
|
@${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|