libtwin: General cleanup of the libtwin package makefile
o Make indenting consistent. o Update project URL. o Add MAINTAINER. o Use EXTRA_CFLAGS instead of TARGET_CFLAGS. o Use INSTALL_XXX macros. o Use default Build/Configure and Build/Compile targets. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@17323 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
693fd253f2
commit
981e18a629
@ -18,49 +18,51 @@ PKG_FIXUP:=libtool
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
PKG_INSTALL=1
|
||||||
|
|
||||||
define Package/libtwin
|
define Package/libtwin
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
DEPENDS:=+zlib +libpng +libjpeg
|
DEPENDS:=+zlib +libpng +libjpeg
|
||||||
TITLE:=The tiny windowing system libraries
|
TITLE:=The tiny windowing system library
|
||||||
URL:=http://www.t2-project.org/packages/libtwin.html
|
URL:=http://ozlabs.org/~jk/projects/petitboot/
|
||||||
|
MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com>
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -flax-vector-conversions
|
define Package/libtwin/description
|
||||||
|
Keith Packard's Tiny Windowing System Library
|
||||||
define Build/Configure
|
|
||||||
$(call Build/Configure/Default, \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-static \
|
|
||||||
--disable-x11 \
|
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
CONFIGURE_ARGS += --enable-shared --enable-static --disable-x11
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
EXTRA_CFLAGS += -flax-vector-conversions
|
||||||
all install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
mkdir -p $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include/libtwin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/libtwin $(1)/usr/include/
|
$(INSTALL_DATA) \
|
||||||
mkdir -p $(1)/usr/lib
|
$(PKG_INSTALL_DIR)/usr/include/libtwin/*.h \
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} $(1)/usr/lib/
|
$(1)/usr/include/libtwin
|
||||||
mkdir -p $(1)/usr/lib/pkgconfig
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc $(1)/usr/lib/pkgconfig/
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/libtwin.{la,a,so*} \
|
||||||
|
$(1)/usr/lib/
|
||||||
|
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtwin.pc \
|
||||||
|
$(1)/usr/lib/pkgconfig/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/UninstallDev
|
define Build/UninstallDev
|
||||||
rm -rf \
|
rm -rf $(1)/usr/include/libtwin
|
||||||
$(STAGING_DIR)/usr/include/libtwin \
|
|
||||||
$(STAGING_DIR)/usr/lib/libtwin.{la,a,so*} \
|
|
||||||
$(STAGING_DIR)/usr/lib/pkgconfig/libtwin.pc
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libtwin/install
|
define Package/libtwin/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtwin.so* $(1)/usr/lib/
|
$(INSTALL_BIN) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/libtwin.so* \
|
||||||
|
$(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libtwin))
|
$(eval $(call BuildPackage,libtwin))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user