-define Build/UninstallDev
- rm -rf \
- $(STAGING_DIR)/usr/include/magic.h \
- $(STAGING_DIR)/usr/lib/libmagic.{a,so*}
+CONFIGURE_ARGS += \
+ --enable-shared \
+ --enable-static \
+ --disable-rpath \
+ --without-libiconv-prefix \
+ --without-libintl-prefix \
+
+MAKE_FLAGS += \
+ -C $(PKG_BUILD_DIR)/src \
+ DESTDIR="$(PKG_INSTALL_DIR)" \
+ all install \
+
+define Build/InstallDev
+ mkdir -p $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/magic.h $(1)/usr/include/
+ mkdir -p $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.{a,so*} $(1)/usr/lib/