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)
65 lines
1.3 KiB
Makefile
65 lines
1.3 KiB
Makefile
# New ports collection makefile for: sams
|
|
# Date created: 12 December 2006
|
|
# Whom: dindin
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sams
|
|
DISTVERSION= 20070524
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://sams.irc.perm.ru/downloads/ \
|
|
http://www.dindin.ru/download/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= dindin@dindin.ru
|
|
COMMENT= Squid Accounting Management System
|
|
|
|
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
USE_RC_SUBR= sams.sh
|
|
|
|
USE_PHP= gd mysql ldap
|
|
USE_MYSQL= 4.1
|
|
|
|
OPTIONS= NTLM "NTLM autorization/ActiveDirectory support" off \
|
|
APACHE2 "Use apache version 2" off
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
|
|
|
|
.if exists(${OPTIONSFILE})
|
|
.include "${OPTIONSFILE}"
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS=--with-configfile=${LOCALBASE}/etc/sams.conf \
|
|
--with-rcd-locations=${LOCALBASE}/etc/rc.d/ \
|
|
--with-httpd-locations=${DOCUMENT_ROOT}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_NTLM)
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/ntlm_auth:${PORTSDIR}/net/samba3
|
|
.endif
|
|
|
|
.if defined(WITH_APACHE2)
|
|
RUN_DEPENDS+= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13
|
|
.else
|
|
RUN_DEPENDS+= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache22
|
|
.endif
|
|
|
|
post-extract:
|
|
${INSTALL_SCRIPT} ${FILESDIR}/setup.sh ${WRKSRC}/
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
setup:
|
|
@cd ${WRKSRC}; ${WRKSRC}/setup.sh
|
|
|
|
.include <bsd.port.post.mk>
|