diff options
Diffstat (limited to 'misc/estic/Makefile')
-rw-r--r-- | misc/estic/Makefile | 59 |
1 files changed, 43 insertions, 16 deletions
diff --git a/misc/estic/Makefile b/misc/estic/Makefile index 2847e6163244..f7e4358889fe 100644 --- a/misc/estic/Makefile +++ b/misc/estic/Makefile @@ -6,21 +6,31 @@ # PORTNAME= estic -PORTVERSION= 1.40 +PORTVERSION= 1.61 CATEGORIES= misc -MASTER_SITES= ftp://linux01.gwdg.de/pub/isdn/estic/old-versions/v1.40/ -DISTNAME= estic-${PORTVERSION}-sources +MASTER_SITES= ftp://ftp.gwdg.de/pub/misc/isdn/linux/estic/ +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_XLIB= yes USE_ZIP= yes +USE_REINPLACE= yes +#USE_GCC= 2.95 NO_WRKSUBDIR= yes -# maybe one of them depends on the vga font from pcemu ? -X_OR_NOT=-x# With X Window System, Runs OK -#X_OR_NOT=# Without X Window System, Compile fails +.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. @@ -30,33 +40,50 @@ PBX_MAN=${MANPREFIX}/man/man1 PBX_BIN=${PREFIX}/bin PBX_DOC=${DOCSDIR} ESTIC=${WRKSRC}/estic -MAKE_E= make X11BASE=${X11BASE} -f make/freebsd${X_OR_NOT}.mak +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 ; ${MAKE_E} dep - @cd ${ESTIC} ; ${MAKE_E} dep + @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: - @# If you don't want ResourceEditor you can `cd spunk ; ${MAKE_E} lib` - cd ${WRKSRC}/spunk ; ${MAKE_E} - cd ${ESTIC} ; ${MAKE_E} + 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}/estic.ini ${PBX_ETC}/estic.ini.generic_example + ${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}/alias.dat ${PBX_ETC}/aliases.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 + @${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 |