summaryrefslogtreecommitdiffstats
path: root/package/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/rules.mk')
-rw-r--r--package/rules.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/rules.mk b/package/rules.mk
index fe16a18f9..79c2b3460 100644
--- a/package/rules.mk
+++ b/package/rules.mk
@@ -55,7 +55,15 @@ define Package/Default
DEPENDS:=
MAINTAINER:=OpenWrt Developers Team <openwrt-devel@openwrt.org>
SOURCE:=$(patsubst $(TOPDIR)/%,%,${shell pwd})
- VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
+ ifneq ($(PKG_VERSION),)
+ ifneq ($(PKG_RELEASE),)
+ VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
+ else
+ VERSION:=$(PKG_VERSION)
+ endif
+ else
+ VERSION:=$(PKG_RELEASE)
+ endif
PKGARCH:=$(ARCH)
PRIORITY:=optional
DEFAULT:=