summaryrefslogtreecommitdiff
path: root/package/bitlbee/Makefile
blob: a86cbb921007d650e7044983d7b95d4d028acf49 (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
64
65
66
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		bitlbee
PKG_VERSION:=		1.2.3
PKG_RELEASE:=		1
PKG_MD5SUM:=		2b1674d98804970809de3da3edf0bed2
PKG_DESCR:=		IRC gateway to IM chat networks
PKG_SECTION:=		net
PKG_DEPENDS:=		glib libopenssl libiconv
PKG_URL:=		http://www.bitlbee.org
PKG_SITES:=		http://get.bitlbee.org/src/ \
			http://get.bitlbee.be/src/ \
			http://get.us.bitlbee.org/src/ \
			http://ftp.snt.utwente.nl/pub/software/bitlbee/src/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,BITLBEE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
ifeq ($(ADK_IPV6),y)
IPV6+=	--ipv6=1
else
IPV6+=	--ipv6=0
endif

do-configure:
		(cd $(WRKBUILD); \
			$(TARGET_CONFIGURE_OPTS) \
			CFLAGS="$(TARGET_CFLAGS)" \
			CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
			LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
			STAGING_DIR="$(STAGING_DIR)" \
			STRIP="$(STRIP)" \
			./configure \
			--prefix=/usr/ \
			--bindir=/usr/sbin/ \
			--etcdir=/etc/bitlbee/ \
			--datadir=/usr/share/bitlbee/ \
			--config=/var/lib/bitlbee/ \
			--arch=Linux \
			--cpu="${ARCH}" \
			--debug=0 \
			--strip=1 \
			--ssl=openssl \
			--target=${REAL_GNU_TARGET_NAME} \
			${IPV6} \
		);

BUILD_STYLE=		auto
INSTALL_STYLE=		auto
INSTALL_TARGET=		install-etc install-bin

post-configure:
	@echo 'CFLAGS+="-I${STAGING_DIR}/usr/include/iconv"' >> \
		${WRKBUILD}/Makefile.settings
	@echo 'LFLAGS+="-L${STAGING_DIR}/usr/lib/iconv"' >> \
		${WRKBUILD}/Makefile.settings

post-install:
	${INSTALL_DIR} ${IDIR_BITLBEE}/etc/bitlbee ${IDIR_BITLBEE}/usr/sbin
	${INSTALL_DATA} ${WRKINST}/etc/bitlbee/* ${IDIR_BITLBEE}/etc/bitlbee
	${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin

include ${TOPDIR}/mk/pkg-bottom.mk