summaryrefslogtreecommitdiff
path: root/package/sdl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/sdl/Makefile')
-rw-r--r--package/sdl/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/sdl/Makefile b/package/sdl/Makefile
index 04526773c..f5f9ff6aa 100644
--- a/package/sdl/Makefile
+++ b/package/sdl/Makefile
@@ -20,6 +20,11 @@ WRKDIST= ${WRKDIR}/SDL-${PKG_VERSION}
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBSDL,libsdl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBSDL_DEV,libsdl-dev,$(PKG_VERSION)-${PKG_RELEASE},libsdl,${PKG_DESCR},${PKG_SECTION}))
+
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_LIBSDL_DEV}+= libsdl-dev-install
CONFIGURE_STYLE:= gnu
CONFIGURE_ARGS+= --disable-esd \
@@ -33,8 +38,12 @@ CONFIGURE_ARGS+= --disable-esd \
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
-post-install:
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
$(INSTALL_DIR) $(IDIR_LIBSDL)/usr/lib
$(CP) ${WRKINST}/usr/lib/libSDL*.so* $(IDIR_LIBSDL)/usr/lib
+libsdl-dev-install:
+ $(INSTALL_DIR) $(IDIR_LIBSDL_DEV)/usr/include/SDL
+ $(CP) ${WRKINST}/usr/include/SDL/* $(IDIR_LIBSDL_DEV)/usr/include/SDL
+
include ${TOPDIR}/mk/pkg-bottom.mk