X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/0f54272dce72f8847654af9035df07f33e49745b..4a3137abd7b3cb269885ab694a0b11a4e84bb98d:/package/fonera-mp3/Makefile diff --git a/package/fonera-mp3/Makefile b/package/fonera-mp3/Makefile index 6dea247fc..1cdbd4c51 100644 --- a/package/fonera-mp3/Makefile +++ b/package/fonera-mp3/Makefile @@ -19,10 +19,13 @@ include $(INCLUDE_DIR)/package.mk define Package/fonera-mp3d SECTION:=utils CATEGORY:=Utilities - DEPENDS:=@LINUX_2_6_ATHEROS + DEPENDS:=@TARGET_atheros TITLE:=Daemon for fonera-mp3 - DESCRIPTION:=Daemon to drive a vs1011X mp3 decoder attached to the \ - fonera gpio pins +endef + +define Package/fonera-mp3d/description + Daemon to drive a vs1011X mp3 decoder attached to the + fonera gpio pins endef define Build/Prepare @@ -48,12 +51,14 @@ define Package/fonera-mp3d/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/mp3d $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/mplay $(1)/usr/bin/ $(INSTALL_DIR) $(1)/www/cgi-bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi/mp3.cgi $(1)/www/cgi-bin/ + ln -sf mp3.cgi $(1)/www/cgi-bin/mp3_cmd.cgi + ln -sf mp3.cgi $(1)/www/cgi-bin/mp3_json.cgi + ln -sf mp3.cgi $(1)/www/cgi-bin/mp3_remote.cgi $(INSTALL_DIR) $(1)/www/local - $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi/{stylesheet.css,json.js} $(1)/www/local - $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi/mp3.cgi $(1)/www/cgi-bin - ln -s mp3.cgi $(1)/www/cgi-bin/mp3_cmd.cgi - ln -s mp3.cgi $(1)/www/cgi-bin/mp3_json.cgi - ln -s mp3.cgi $(1)/www/cgi-bin/mp3_remote.cgi + $(INSTALL_DATA) $(PKG_BUILD_DIR)/cgi/{stylesheet.css,json.js} $(1)/www/local/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/mp3d.init $(1)/etc/init.d/mp3d endef $(eval $(call BuildPackage,fonera-mp3d))