blob: 823a22ec6d71704141f955be903002d545797770 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: max
# $FreeBSD$
PORTNAME= sfslite
PORTVERSION= 1.2.7
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://dist.okws.org/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Standard version of the sfslite library
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
CONFIGURE_ARGS= --with-gmp=${LOCALBASE}
GNU_CONFIGURE= yes
#
# rpcc does not work with byacc, so just require BISON
#
USES= bison gmake
#
# Map X.Y.Z.Q => X.Y
#
SHORTVERSION= ${PORTVERSION:C/^([^\.]+\.[^\.]+).*$/\1/}
#
# if being called from one of the slave distributions (like
# sfslite-dbg), then the build-mode will be set, and we should
# rename the port accordingly so that more than one of them can
# be built.
#
.if defined(BUILD_MODE)
PKGNAMESUFFIX+= -${BUILD_MODE}
RPCC_BIN?= lib/${PORTNAME}-${SHORTVERSION}/${BUILD_MODE}
.else
BUILD_MODE?= shopt
RPCC_BIN?= bin
CONFIGURE_ARGS += --enable-system-bin
.endif # define(BUILD_MODE)
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}/${BUILD_MODE}
CONFIGURE_ARGS+=--with-mode=${BUILD_MODE}
PLIST_SUB= VERSION=${SHORTVERSION} \
TAG=${BUILD_MODE} \
RPCC_BIN=${RPCC_BIN}
#
# Slave distributions might override this since they won't have a
# pkg-install script in their directory.
#
PKG_INSTALL?= pkg-install
NO_STAGE= yes
pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKG_INSTALL} ${PKGNAME} PRE-INSTALL
.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>
|