freebsd-ports/misc/estic/Makefile
Dirk Meyer 8a40a328cd - mirror distfiles
master site has stopped distribution
2005-09-14 13:20:56 +00:00

111 lines
3.7 KiB
Makefile

# ports collection makefile for: estic
# Date created: 21 Sep 1996
# Whom: Julian Stacey <jhs@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= estic
PORTVERSION= 1.61
CATEGORIES= misc comms
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dinoex
PKGNAMESUFFIX?= ${NOX11_SUFFIX}${PKGNAMESUFFIX2}
DISTFILES= estic-1.60-sources.zip estic-1.61-patch-from-1.60.zip
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Controller for ISDN TK-Anlage (PBX) made by Istec
USE_ZIP= yes
USE_REINPLACE= yes
#USE_GCC= 2.95
NO_WRKSUBDIR= yes
.if defined(WITHOUT_X11)
NOX11_SUFFIX?= -nox11
X_OR_NOT=
PLIST_SUB+= WITHOUT_X=""
PLIST_SUB+= WITH_X="@comment "
.else
USE_XLIB= yes
X_OR_NOT=-x
PLIST_SUB+= WITHOUT_X="@comment "
PLIST_SUB+= WITH_X=""
.endif
AUTHOR= "Ullrich von Bassewitz" <uz@ibb.schwaben.com>
# Personal Preferences, Where to install.
PBX_VAR=${PREFIX}/var/log/pbx
PBX_ETC=${PREFIX}/etc/pbx
PBX_MAN=${MANPREFIX}/man/man1
PBX_BIN=${PREFIX}/bin
PBX_DOC=${DOCSDIR}
ESTIC=${WRKSRC}/estic
AREACODE_DATAFILE=${PREFIX}/etc/pbx/areacodes
MAKEFILE=make/freebsd${X_OR_NOT}.mak
.if defined(WITH_ESTIC_DTR_OFF)
EXTRA_PATCHES+= ${FILESDIR}/dtr-off.patch
.endif
pre-patch:
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
# @${PATCH} -d ${PATCH_WRKSRC}/estic --forward --quiet -E -p0 --batch < ${WRKDIR}/estic.diff
do-configure:
@cd ${WRKSRC}/spunk ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} dep
@cd ${WRKSRC}/areacode ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} dep
@cd ${ESTIC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} dep
do-build:
cd ${WRKSRC}/spunk ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
cd ${WRKSRC}/areacode ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
cd ${ESTIC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
do-install:
.if defined(WITHOUT_X11)
${INSTALL_PROGRAM} ${ESTIC}/estic ${PBX_BIN}/
.else
${INSTALL_PROGRAM} ${ESTIC}/xestic ${PBX_BIN}/
.endif
${INSTALL_DATA} ${ESTIC}/estic.res ${PBX_BIN}/
.if !defined(NOPORTDOCS)
@# estic doc says estic.res must be in bin path or current directory
@${MKDIR} ${PBX_DOC}
${INSTALL_MAN} ${ESTIC}/estic.doc ${PBX_DOC}
@# estic.doc is not nroff format, & is in German, volunteers to create
@# _and maintain_ nroff formatted English should contact ${AUTHOR}
${INSTALL_MAN} ${FILESDIR}/README ${PBX_DOC}
.endif
@# ${FILESDIR}/README is not in nroff, but is a temporary document.
@${MKDIR} ${PBX_ETC} ${PBX_VAR}
${INSTALL_DATA} ${ESTIC}/samples/estic.ini ${PBX_ETC}/estic.ini.generic_example
${INSTALL_DATA} ${FILESDIR}/estic.ini ${PBX_ETC}/estic.ini.freebsd_example
${INSTALL_DATA} ${ESTIC}/samples/alias.dat ${PBX_ETC}/aliases.example
@# create config & debug so we can change mode to private
@${TOUCH} ${PBX_ETC}/config ${PBX_VAR}/debug
${CHMOD} 600 ${PBX_VAR}/debug ${PBX_ETC}/config
${CHMOD} 700 ${PBX_VAR} # estic will create ./1996.11 etc
post-install:
@${ECHO_MSG} ""
@${ECHO_MSG} " Suggestion, try: make demo"
demo:
@${ECHO_MSG} "If you want to try this under X-Windows, do this:"
@${ECHO_MSG} " ${SETENV} SPUNK_LANGUAGE 001"
@${ECHO_MSG} " ${SETENV} SPUNK_XFONT 8x13"
@${ECHO_MSG} " cd ${PBX_ETC}"
@${ECHO_MSG} " vi estic.ini"
@${ECHO_MSG} " ${CHMOD} 666 /dev/cuaaX, or su"
@${ECHO_MSG} " ${ESTIC}/xestic -display :0"
@${ECHO_MSG} " (If you have no Istec 100[38] connected, append -n )"
@${ECHO_MSG} " A BUGS & PROBLEMS section exists in ${FILESDIR}/README == man estic_freebsd"
# Ref. NO_CDROM= & NO_PACKAGE=
# It is not necessary to prevent inclusion of source or binary on FreeBSD
# CDROMs, # (despite the original German phraseology) as I (<jhs@freebsd.org>)
# have obtained a waiver. See ${FILESDIR}/README for explanation.
.include <bsd.port.mk>