-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gflags: new package #107
gflags: new package #107
Conversation
PKG_LICENSE:=BSD-3c | ||
PKG_LICENSE_FILE:=COPYING.txt | ||
|
||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to set this
DEPENDS:=+libstdcpp | ||
TITLE:=gflags | ||
endef | ||
define Package/gflags/description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line
define Package/gflags/install | ||
$(INSTALL_DIR) $(1)/usr/lib/ | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Installing to staging should be done in the Build/InstallDev target
$(INSTALL_DIR) $(1)/usr/include/ | ||
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/ | ||
endef | ||
$(eval $(call BuildPackage,$(PKG_NAME))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If your going to use the variable instead of the name then please do this consistently for all referemces to gflags
6950c98
to
3a120af
Compare
PKG_VERSION:=v2.1.2 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not compile because PKG_SOURCE_VERSION and PKG_SOURCE_SUBDIR are missing.
I suggest:
PKG_VERSION:=2.1.2
...
PKG_SOURCE_VERSION=v$(PKG_VERSION)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_NAME:=gflags | ||
PKG_VERSION:=v2.1.2 | ||
PKG_RELEASE:=1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also set PKG_LICENSE and PKG_LICENSE_FILE.
define Package/$(PKG_NAME)/install | ||
$(INSTALL_DIR) $(1)/usr/lib/ | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ | ||
$(INSTALL_DIR) $(1)/usr/include/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to copy the include otherwise it is not part of the ipk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean copy to staging dir right?
That's done in Build/InstallDev below?
3a120af
to
12b35bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update Readm to include information about newly added package
6186fc8
to
bb47bd2
Compare
Signed-off-by: Abhilash Tuse <[email protected]>
Fixes dependency check error when building applications which uses gflags. Signed-off-by: Abhilash Tuse <[email protected]>
bb47bd2
to
9eef923
Compare
This connects to CreatorDev/openwrt#112