switch to using the FLAVORS framework for the socks5 option instead of the
previous ugly hack.
This commit is contained in:
parent
f4839c6a7d
commit
25df2e99d5
@ -1,14 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.23 2000/07/04 19:33:07 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.24 2000/07/20 10:34:52 brad Exp $
|
||||
# $FreeBSD: Makefile,v 1.3 1998/07/21 11:38:44 eivind Exp $
|
||||
|
||||
DISTNAME= BitchX-1.0c16
|
||||
.if defined(USE_SOCKS5) && ${USE_SOCKS5:U} == YES
|
||||
PKGNAME= bitchx-1.0c16-socks5
|
||||
.else
|
||||
PKGNAME= bitchx-1.0c16
|
||||
.endif
|
||||
CATEGORIES= net
|
||||
NEED_VERSION= 1.302
|
||||
NEED_VERSION= 1.310
|
||||
MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \
|
||||
ftp://ftp.bitchx.org/pub/BitchX/source/ \
|
||||
ftp://bitchx.dimension6.com/pub/BitchX/source/
|
||||
@ -21,10 +17,6 @@ PATCH_DIST_ARGS=-d ${WRKSRC}/source -E ${PATCH_DIST_STRIP}
|
||||
PATCH_DIST_ARGS=-d ${WRKSRC}/source --forward --quiet -E ${PATCH_DIST_STRIP}
|
||||
.endif
|
||||
|
||||
.if defined(USE_SOCKS5) && ${USE_SOCKS5:U} == YES
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a::security/socks5
|
||||
.endif
|
||||
|
||||
MAINTAINER= brad@openbsd.org
|
||||
|
||||
PERMIT_PACKAGE_CDROM= "no obvious license"
|
||||
@ -36,8 +28,15 @@ SEPARATE_BUILD= concurrent
|
||||
USE_GMAKE= Yes
|
||||
CONFIGURE_STYLE= gnu dest
|
||||
|
||||
FLAVORS= socks5
|
||||
FLAVOR?=
|
||||
|
||||
.if defined(USE_SOCKS5) && ${USE_SOCKS5:U} == YES
|
||||
CONFIGURE_ARGS+= --with-socks5="${LOCALBASE}"
|
||||
FLAVOR= socks5
|
||||
.endif
|
||||
.if ${FLAVOR:L} == "socks5"
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a::security/socks5
|
||||
CONFIGURE_ARGS= --with-socks5="${LOCALBASE}"
|
||||
.endif
|
||||
|
||||
FAKE_FLAGS= INSTALL="${INSTALL_PROGRAM}" INSTALL_DATA="${INSTALL_DATA}"
|
||||
|
Loading…
Reference in New Issue
Block a user