Skip to content
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

Merged
merged 2 commits into from
Nov 30, 2016
Merged

gflags: new package #107

merged 2 commits into from
Nov 30, 2016

Conversation

abhilashtuse
Copy link

@abhilashtuse abhilashtuse commented Nov 25, 2016

This connects to CreatorDev/openwrt#112

PKG_LICENSE:=BSD-3c
PKG_LICENSE_FILE:=COPYING.txt

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
Copy link
Member

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
Copy link
Member

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/
Copy link
Member

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)))
Copy link
Member

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

PKG_VERSION:=v2.1.2
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
Copy link

@ghost ghost Nov 28, 2016

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

Copy link

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/
Copy link

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.

Copy link
Author

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?

Copy link
Contributor

@nikhil-zinjurde-imgtec nikhil-zinjurde-imgtec left a 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

@abhilashtuse abhilashtuse force-pushed the gflags-feeds branch 2 times, most recently from 6186fc8 to bb47bd2 Compare November 29, 2016 10:53
Abhilash Tuse added 2 commits November 29, 2016 16:26
Signed-off-by: Abhilash Tuse <[email protected]>
Fixes dependency check error when building applications which uses
gflags.

Signed-off-by: Abhilash Tuse <[email protected]>
@Ham22 Ham22 merged commit c98f8e9 into CreatorDev:master Nov 30, 2016
@Ham22 Ham22 removed the s: review label Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants