Skip to content

Instantly share code, notes, and snippets.

@jordemort
Created September 17, 2015 03:09
Show Gist options
  • Save jordemort/9a614730b26fed5cbae7 to your computer and use it in GitHub Desktop.
Save jordemort/9a614730b26fed5cbae7 to your computer and use it in GitHub Desktop.
i2pd Makefile that doesn't work
include $(TOPDIR)/rules.mk
PKG_NAME:=i2pd
PKG_VERSION:=0.10.0
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/i2pd-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL=https://github.com/PurpleI2P/i2pd/archive
PKG_MD5SUM:=4889026c2d051bacb24b67925f8ceada
PKG_BUILD_DEPENDS:=
PKG_CAT:=zcat
include $(INCLUDE_DIR)/package.mk
define Package/i2pd
SECTION:=base
CATEGORY:=Network
TITLE:=lightweight i2p router
URL:=https://github.com/PurpleI2P/i2pd/
DEPENDS:=+libcrypto++ +boost
endef
define Package/i2pd/description
I2P router written in C++ from the Purple I2P project
endef
define Build/Configure
echo LOL!
endef
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
endef
define package/i2pd/install
+mkdir -p $(1)/sbin
+find $(PKG_INSTALL_DIR)
endef
$(eval $(call BuildPackage,i2pd))
@jordemort
Copy link
Author

localadmin@routerdev:~/openwrt-sdk$ make -j2 V=s package/i2pd/compile
#
# configuration written to .config
#
make[1]: Entering directory `/home/localadmin/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
make[2]: Entering directory `/home/localadmin/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/package/i2pd'
make[2]: Leaving directory `/home/localadmin/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/package/i2pd'
make[1]: Leaving directory `/home/localadmin/OpenWrt-SDK-15.05-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
localadmin@routerdev:~/openwrt-sdk$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment