summaryrefslogtreecommitdiff
path: root/package/bitlbee/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/bitlbee/Makefile
Initial import
Diffstat (limited to 'package/bitlbee/Makefile')
-rw-r--r--package/bitlbee/Makefile68
1 files changed, 68 insertions, 0 deletions
diff --git a/package/bitlbee/Makefile b/package/bitlbee/Makefile
new file mode 100644
index 000000000..7e08a34a0
--- /dev/null
+++ b/package/bitlbee/Makefile
@@ -0,0 +1,68 @@
+# $Id$
+#-
+# 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
+MASTER_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,bitlbee,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+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
+ ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_BITLBEE}/usr/sbin
+ ${INSTALL_DATA} ${WRKINST}/etc/bitlbee/* ${IDIR_BITLBEE}/etc/bitlbee
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin
+ ${INSTALL_BIN} ./files/bitlbee.init \
+ ${IDIR_BITLBEE}/etc/init.d/bitlbee
+
+include ${TOPDIR}/mk/pkg-bottom.mk