summaryrefslogtreecommitdiff
path: root/lang/smalltalk
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2012-06-28 16:12:21 +0000
committerJohan van Selst <johans@FreeBSD.org>2012-06-28 16:12:21 +0000
commitf030d9e3ad2aec4db078a31eaadc7194930b2173 (patch)
treea1d9e3b59d20f01dba7e19243dce08711dffebcc /lang/smalltalk
parent- Fix CONFLICTS: 1.4 which is not matched with 1.[24].* (diff)
Convert to new options framework
Notes
Notes: svn path=/head/; revision=300163
Diffstat (limited to 'lang/smalltalk')
-rw-r--r--lang/smalltalk/Makefile49
1 files changed, 25 insertions, 24 deletions
diff --git a/lang/smalltalk/Makefile b/lang/smalltalk/Makefile
index d6ceca50a8e3..26dc53837acb 100644
--- a/lang/smalltalk/Makefile
+++ b/lang/smalltalk/Makefile
@@ -17,13 +17,12 @@ COMMENT= GNU Smalltalk
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
gawk:${PORTSDIR}/lang/gawk
-LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm \
- execinfo.1:${PORTSDIR}/devel/libexecinfo \
- cairo.2:${PORTSDIR}/graphics/cairo
+LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm \
+ execinfo:${PORTSDIR}/devel/libexecinfo \
+ cairo:${PORTSDIR}/graphics/cairo
-OPTIONS= TCLTK "Enable Tcl/Tk binding" on \
- PGSQL "PostgreSQL binding" on \
- SDL "SDL binding" on
+OPTIONS_DEFINE= TCL PGSQL SDL
+OPTIONS_DEFAULT=TCL PGSQL SDL
USE_AUTOTOOLS= libtool
USE_GNOME= gnomehack pkgconfig pango
@@ -53,35 +52,37 @@ INFO= gst gst-base gst-libs
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= Fails to install on sparc64
-.endif
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_TCLTK)
-CONFIGURE_ARGS+= --with-tcl=no
-PLIST_SUB+= TCLTK="@comment "
-.else
-LIB_DEPENDS+= tk84.1:${PORTSDIR}/x11-toolkits/tk84
+.if ${PORT_OPTIONS:MTCL}
+LIB_DEPENDS+= tk84:${PORTSDIR}/x11-toolkits/tk84
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
--with-tk=${LOCALBASE}/lib/tk8.4
-PLIST_SUB+= TCLTK=""
+PLIST_SUB+= TCLTK=""
+.else
+CONFIGURE_ARGS+= --with-tcl=no
+PLIST_SUB+= TCLTK="@comment "
.endif
-.if defined(WITHOUT_PGSQL)
-PLIST_SUB+= PGSQL="@comment "
-.else
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
-.include "${PORTSDIR}/Mk/bsd.database.mk"
+. include "${PORTSDIR}/Mk/bsd.database.mk"
PLIST_SUB+= PGSQL=""
+.else
+PLIST_SUB+= PGSQL="@comment "
.endif
-.if defined(WITHOUT_SDL)
-PLIST_SUB+= SDL="@comment "
-.else
+.if ${PORT_OPTIONS:MSDL}
USE_SDL= image mixer sdl sound ttf
PLIST_SUB+= SDL=""
+.else
+PLIST_SUB+= SDL="@comment "
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+BROKEN= Fails to install on sparc64
.endif
post-patch: