openwrt_archive/skels/Makefile.template
Felix Fietkau eee3504622 skels: clean up the makefile template a bit
SVN-Revision: 32374
2012-06-14 20:26:27 +00:00

53 lines
1.0 KiB
Makefile

#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This Makefile is a skeleton
#
include $(TOPDIR)/rules.mk
PKG_NAME:=
PKG_VERSION:=
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=
PKG_MD5SUM:=
include $(INCLUDE_DIR)/package.mk
define Package/package
SECTION:=net
CATEGORY:=Network
TITLE:=package
URL:=
endef
define Package/package/description
endef
# add extra configure flags here
CONFIGURE_ARGS += \
--enable-static \
--enable-shared
# add make variable overrides here
MAKE_FLAGS +=
define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
endef
define Package/package/install
$(INSTALL_DIR) $(1)/usr/package
$(CP) $(PKG_INSTALL_DIR)/usr/package/package.so.* $(1)/usr/package/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/package.init $(1)/etc/init.d/package
$(INSTALL_DIR) $(1)/etc/config/
$(INSTALL_CONF) $(1)/etc/config/package
endef
$(eval $(call BuildPackage,package))