75 lines
1.7 KiB
Makefile
75 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libmgutils
|
|
PKG_VERSION:=1.2.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_BUILD_DIR:=$(COMPILE_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE_URL:=http://www.minigui.org/downloads/
|
|
PKG_MD5SUM:=dbf5fc3b5fab94fe7bbe9e6c2c6ae0cb
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_INSTALL:=1
|
|
|
|
include $(BUILD_DIR)/package.mk
|
|
|
|
define Package/libmgutils
|
|
SECTION:=gui
|
|
CATEGORY:=Minigui
|
|
DEPENDS:= +libminigui-gpl
|
|
TITLE:=libmgutils
|
|
MAINTAINER:=tracewong <tracewong@outlook.com>
|
|
URL:=http://www.minigui.org/
|
|
endef
|
|
|
|
define Package/libmgutils/description
|
|
mGUtils is a component of MiniGUI,
|
|
provides users with a number of common dialog templates.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
$(call Build/Prepare/Default)
|
|
(cd $(PKG_BUILD_DIR) && ./autogen.sh)
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/include/mgutils \
|
|
$(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(INSTALL_DATA) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mgutils.pc \
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libmgutils*.{a,la,so*} \
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/minigui/cmake/Modules
|
|
$(INSTALL_DATA) \
|
|
$(PKG_INSTALL_DIR)/usr/share/minigui/cmake/Modules/*.cmake \
|
|
$(1)/usr/share/minigui/cmake/Modules/
|
|
endef
|
|
|
|
define Package/libmgutils/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
$(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libmgutils))
|