f935a609c5
supports them. This is determined by running ``configure --help'' in do-configure target and set the shell variable _LATE_CONFIGURE_ARGS which is then passed to CONFIGURE_ARGS. - Remove --mandir and --infodir in ports' Makefile where applicable Few ports use REINPLACE_CMD to achieve the same effect, remove them too. - Correct some manual pages location from PREFIX/man to MANPREFIX/man - Define INFO_PATH where necessary - Document that .info files are installed in a subdirectory relative to PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and subdirectory detection. PR: ports/111470 Approved by: portmgr Discussed with: stas (Mk/*), gerald (info related stuffs) Tested by: pointyhat exp run
80 lines
2 KiB
Makefile
80 lines
2 KiB
Makefile
# New ports collection makefile for: smalltalk
|
|
# Date created: 09 Feb 1995
|
|
# Whom: gpalmer
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= smalltalk
|
|
PORTVERSION= 2.3.5
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= johans@stack.nl
|
|
COMMENT= GNU Smalltalk
|
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
|
|
execinfo.1:${PORTSDIR}/devel/libexecinfo
|
|
|
|
OPTIONS= TCLTK "Enable Tcl/Tk binding" on
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
USE_GCC= 3.4+
|
|
USE_ICONV= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
ac_cv_prog_EMACS=no
|
|
CONFIGURE_ARGS= --enable-generational-gc=no \
|
|
--enable-gtk=no \
|
|
--with-emacs=no \
|
|
--with-gmp=no
|
|
USE_LDCONFIG= yes
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
MAN1= gst.1
|
|
INFO= gst gst-base gst-libs
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 600000
|
|
BROKEN= requires C99 math functions for long doubles
|
|
.endif
|
|
|
|
.if defined(WITHOUT_TCLTK)
|
|
CONFIGURE_ARGS+= --with-tcl=no
|
|
PLIST_SUB+= TCLTK="@comment "
|
|
.else
|
|
LIB_DEPENDS+= tk84.1:${PORTSDIR}/x11-toolkits/tk84
|
|
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
|
|
--with-tk=${LOCALBASE}/lib/tk8.4
|
|
PLIST_SUB+= TCLTK=""
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
|
|
-e 's/ia64-\*-\* /&|amd64-*-* /' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's/x86_64-\*-freebsd\* /&| amd64-*-freebsd* / ' \
|
|
${WRKSRC}/libffi/configure
|
|
@${REINPLACE_CMD} -e 's/lrintl (truncl/lroundl (truncl/' \
|
|
${WRKSRC}/libgst/prims.def \
|
|
${WRKSRC}/libgst/prims.inl
|
|
|
|
post-build:
|
|
@${SED} -e 's|@bindir@|${PREFIX}/bin|g' \
|
|
${WRKSRC}/gst-mode.el.in > ${WRKSRC}/gst-mode.el
|
|
@${SED} -e 's|@lispdir@|${PREFIX}/share/emacs/site-lisp|g' \
|
|
${WRKSRC}/smalltalk-mode.el.in > ${WRKSRC}/smalltalk-mode.el
|
|
|
|
post-install:
|
|
@${MKDIR} ${DATADIR}/gtk
|
|
@${TOUCH} ${DATADIR}/gtk/.keep_me
|
|
${INSTALL_DATA} ${WRKSRC}/*.el ${PREFIX}/share/emacs/site-lisp
|
|
|
|
.include <bsd.port.post.mk>
|