8c191c0ed9
databases/sqsh databases/sqsh-motif databases/sqsh-x11 The latter two are now just databases/sqsh built with a specific set of options. Changes include: + Add options.mk that supports three options: sqsh-motif Motif GUI sqsh-xaw Athena GUI sybase-openclient Use real Sybase Note that USE_SYBASE_OPENCLIENT is a legacy variable for the new global "sybase-openclient" option. + Remove Makefile.common and move all logic into sqsh/Makefile and sqsh/options.mk. + Remove section in patch-aa that tried to deal with termcap/curses issues for readline. That is now automatically taken care of in pkgsrc through termcap.buildlink3.mk, which is included here indirectly by readline/buildlink3.mk. + Add full DESTDIR support. + Bump the PKGREVISION for sqsh, sqsh-motif and sqsh-x11 to 5. All three packages now track and use the same PKGREVISION number.
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2008/04/22 16:23:36 jlam Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.sqsh
|
|
PKG_SUPPORTED_OPTIONS+= sybase-openclient
|
|
PKG_OPTIONS_OPTIONAL_GROUPS+= x11
|
|
PKG_OPTIONS_GROUP.x11+= sqsh-motif sqsh-xaw
|
|
PKG_OPTIONS_LEGACY_VARS+= USE_SYBASE_OPENCLIENT:sybase-openclient
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### Motif GUI support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msqsh-motif)
|
|
. include "../../mk/motif.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-motif=${MOTIFBASE:Q}
|
|
.endif
|
|
|
|
###
|
|
### Athena GUI support.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msqsh-xaw)
|
|
. include "../../mk/xaw.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-x
|
|
.endif
|
|
|
|
###
|
|
### Support for the native Sybase Open Client.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msybase-openclient)
|
|
BUILD_DEFS+= SYBASE
|
|
. if defined(SYBASE) && exists(${SYBASE}/lib/libct.so)
|
|
BUILDLINK_PASSTHRU_DIRS+= ${SYBASE}
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${SYBASE:Q}/lib
|
|
CONFIGURE_ENV+= SYBASE=${SYBASE:Q}
|
|
. else
|
|
PKG_FAIL_REASON+= "You must define SYBASE to the base directory of Open Client."
|
|
. endif
|
|
.else
|
|
. include "../../databases/freetds/buildlink3.mk"
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX:Q}/lib
|
|
CONFIGURE_ENV+= SYBASE=${BUILDLINK_PREFIX.freetds:Q}
|
|
CONFIGURE_ENV+= SYBASE_LIBS=-lct
|
|
MAKE_FLAGS+= SYBASE_LIBS=-lct
|
|
.endif
|