aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libmba/Makefile
blob: bf482696923f22f9256a09bc4e21633b45868d39 (plain) (blame)
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
# ex:ts=8
# Ports collection makefile for:    libmba
# Date Created:         Sep 24, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   libmba
PORTVERSION=    0.6.1
CATEGORIES= devel
MASTER_SITES=   http://www.ioplex.com/~miallen/libmba/dl/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A collection of C modules potentially useful to any project

LIB_DEPENDS=    expat.4:${PORTSDIR}/textproc/expat2

USE_REINPLACE=  yes
USE_GMAKE=  yes
MAKE_ENV=   prefix="${PREFIX}" CC="${CC}" \
        MINVERSION="${SHLIB_MAJOR}" \
        RPM_OPT_FLAGS="${CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
PLIST_SUB=  SHLIB_MAJOR="${SHLIB_MAJOR}"
INSTALLS_SHLIB= yes

MAN3=       cfg.3m csv.3m domnode.3m mbs.3m msgno.3m hashmap.3m hexdump.3m \
        linkedlist.3m pool.3m shellout.3m stack.3m varray.3m
MANCOMPRESSED=  yes

SHLIB_MAJOR=    0

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|\$${PREFIX}|g ; \
         s|^CC|#CC|g ; \
         s|^MAJ|#MAJ|g ; \
         s|^MIN|#MIN|g ; \
         s|\.\$$(MAJVERSION)||g ; \
         s|^RPM_OPT_FLAGS|#RPM_OPT_FLAGS|g ; \
         s| -lc| \$${LDFLAGS}|g ; \
         s|install -m ...|\$${BSD_INSTALL_DATA}|g ; \
         s|-/sbin/ldconfig.*$$||g' ${WRKSRC}/Makefile

.include <bsd.port.mk>