# # Copyright (C) 2006-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=dolmetschctl PKG_VERSION:=2015-10-14 PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://git.spreadspace.org/dolmetschctl.git PKG_SOURCE:=$(PKG_NAME).tar.gz PKG_SOURCE_VERSION:=6bc291c0fd3e1760ca4bfeaf33b38cbb4b21830c PKG_SOURCE_SUBDIR:=$(PKG_NAME) PKG_MAINTAINER:=Christian Pointner PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/dolmetschctl SECTION:=utils CATEGORY:=Utilities DEPENDS:=+alsa-lib +liblo TITLE:=Dolmetsch Control (server) URL:=http://www.spreadspace.org/ endef define Package/dolmetschctl-client SECTION:=utils CATEGORY:=Utilities DEPENDS:=+alsa-lib +liblo TITLE:=Dolmetsch Control (client) URL:=http://www.spreadspace.org/ endef define Build/Configure (cd $(PKG_BUILD_DIR)/app; \ touch include.mk; \ echo '#ifndef DOLMETSCHCTL_config_h_INCLUDED' > config.h; \ echo '#define DOLMETSCHCTL_config_h_INCLUDED' >> config.h; \ echo '' >> config.h; \ echo '#define VERSION_STRING_0 "dolmetschctl trunk (git '$(PKG_SOURCE_VERSION)')"' >> config.h; \ echo '#define VERSION_STRING_1 "built on '`hostname`', '`date +"%d.%m.%Y %H:%M:%S %Z"`'"' >> config.h; \ echo '' >> config.h; \ echo '#define TARGET "linux"' >> config.h; \ echo '#define PREFIX "/usr"' >> config.h; \ echo '#define BINDIR "/usr/bin"' >> config.h; \ echo '#define ETCDIR "/etc"' >> config.h; \ echo '' >> config.h; \ echo '#endif' >> config.h \ ) endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/app \ $(TARGET_CONFIGURE_OPTS) \ TARGET=Linux \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) -llo -lasound" $(STRIP) $(PKG_BUILD_DIR)/app/dolmetschctl $(STRIP) $(PKG_BUILD_DIR)/app/dolmetschctl-client endef define Package/dolmetschctl/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/app/dolmetschctl $(1)/usr/bin/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/dolmetschctl.init $(1)/etc/init.d/dolmetschctl endef define Package/dolmetschctl-client/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/app/dolmetschctl-client $(1)/usr/bin/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/dolmetschctl-client.init $(1)/etc/init.d/dolmetschctl-client endef $(eval $(call BuildPackage,dolmetschctl)) $(eval $(call BuildPackage,dolmetschctl-client))