summaryrefslogtreecommitdiff
path: root/package/sdl-image
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-31 13:44:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-31 13:44:30 +0100
commitb4a851927de091d62541af277f70b13b4452d86d (patch)
tree0c79c5c9759b0a85be8eab361a9c71b61f08cd49 /package/sdl-image
parent026459174c428d1262fc210df6a9a0dc2e1a0e77 (diff)
add devel subpackages, my sample application compiles fine
Diffstat (limited to 'package/sdl-image')
-rw-r--r--package/sdl-image/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/sdl-image/Makefile b/package/sdl-image/Makefile
index 1840817c6..d7cd7a2e7 100644
--- a/package/sdl-image/Makefile
+++ b/package/sdl-image/Makefile
@@ -20,6 +20,11 @@ WRKDIST= ${WRKDIR}/SDL_image-${PKG_VERSION}
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBSDL_IMAGE,libsdl-image,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBSDL_IMAGE_DEV,libsdl-image-dev,$(PKG_VERSION)-${PKG_RELEASE},libsdl-image,${PKG_DESCR},${PKG_SECTION}))
+
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_LIBSDL_IMAGE_DEV}+= libsdl-image-dev-install
CONFIGURE_STYLE:= gnu
CONFIGURE_ARGS+= --enable-png \
@@ -29,8 +34,13 @@ CONFIGURE_ARGS+= --enable-png \
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
-post-install:
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
$(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE)/usr/lib
$(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL_IMAGE)/usr/lib
+libsdl-image-dev-install:
+ $(INSTALL_DIR) $(IDIR_LIBSDL_IMAGE_DEV)/usr/include/SDL
+ $(CP) ${WRKINST}/usr/include/SDL/*.h \
+ $(IDIR_LIBSDL_IMAGE_DEV)/usr/include/SDL
+
include ${TOPDIR}/mk/pkg-bottom.mk