New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deps-freeimage-raub

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deps-freeimage-raub - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

install.js

30

package.json
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "deps-freeimage-raub",
"version": "1.1.1",
"version": "2.0.0",
"description": "Binaries and headers for FreeImage-dependent compilation",

@@ -27,13 +27,21 @@ "license": "MIT",

],
"files": [
"include",
"index.js",
"install.js",
"FREEIMAGE_FIPL",
"LICENSE",
"package.json",
"README.md"
],
"config": {
"install": "v2.0.0"
},
"scripts": {
"postinstall": "node install"
},
"engines": {
"node": ">=10.13.0",
"npm": ">=6.4.1"
"node": ">=12.13.0",
"npm": ">=6.12.0"
},
"maintainers": [
{
"name": "Luis Blanco",
"email": "luisblanco1337@gmail.com",
"skype": "rauber666"
}
],
"repository": {

@@ -44,4 +52,4 @@ "type": "git",

"dependencies": {
"addon-tools-raub": "4.2.0"
"addon-tools-raub": "5.0.0"
}
}

@@ -10,3 +10,3 @@ # FreeImage binaries

> npm i -s deps-freeimage-raub
> npm i deps-freeimage-raub

@@ -16,6 +16,6 @@

This dependency package is distributing **FreeImage**
This dependency package is distributing **FreeImage 3.17**
binaries through **NPM** for **Node.js** addons.
* Platforms: win x32/x64, linux x64, mac x64.
* Platforms (x64): Windows, Linux, OSX.
* Library: FreeImage.

@@ -27,45 +27,79 @@ * Linking: static dll-type.

### binding.gyp
### Example binding.gyp
As in [image-raub](https://github.com/node-3d/image-raub/tree/master/src) Node.js addon.
```javascript
{
'variables': {
'freeimage_include' : '<!(node -e "require(\'deps-freeimage-raub\').include()")',
'freeimage_bin' : '<!(node -e "require(\'deps-freeimage-raub\').bin()")',
'bin' : '<!(node -p "require(\'addon-tools-raub\').bin")',
'fi_include' : '<!(node -p "require(\'deps-freeimage-raub\').include")',
'fi_bin' : '<!(node -p "require(\'deps-freeimage-raub\').bin")',
},
...
'targets': [
{
'target_name': '...',
'target_name': 'image',
'sources': [
'cpp/bindings.cpp',
'cpp/image.cpp',
],
'include_dirs': [
'<(freeimage_include)',
...
'<(fi_include)',
'<!@(node -p "require(\'addon-tools-raub\').include")',
],
'library_dirs': [ '<(freeimage_bin)' ],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exceptions'],
'library_dirs': ['<(fi_bin)'],
'conditions': [
['OS=="linux"', {
'libraries': [
'-Wl,-rpath,<(freeimage_bin)',
'<(freeimage_bin)/freeimage.so',
...
],
}],
['OS=="mac"', {
'libraries': [
'-Wl,-rpath,<(freeimage_bin)',
'<(freeimage_bin)/freeimage.dylib',
...
],
}],
['OS=="win"', {
'libraries': [ 'FreeImage.lib', ... ],
}],
[
'OS=="linux"',
{
'libraries': [
"-Wl,-rpath,'$$ORIGIN'",
"-Wl,-rpath,'$$ORIGIN/../node_modules/deps-freeimage-raub/<(bin)'",
"-Wl,-rpath,'$$ORIGIN/../../deps-freeimage-raub/<(bin)'",
'<(fi_bin)/libfreeimage.so.3',
],
}
],
[
'OS=="mac"',
{
'libraries': [
'-Wl,-rpath,@loader_path',
'-Wl,-rpath,@loader_path/../node_modules/deps-freeimage-raub/<(bin)',
'-Wl,-rpath,@loader_path/../../deps-freeimage-raub/<(bin)',
'<(fi_bin)/freeimage.dylib',
],
'xcode_settings': {
'DYLIB_INSTALL_NAME_BASE': '@rpath',
},
}
],
[
'OS=="win"',
{
'libraries': ['FreeImage.lib'],
'defines' : [
'WIN32_LEAN_AND_MEAN',
'VC_EXTRALEAN'
],
'msvs_version' : '2013',
'msvs_settings' : {
'VCCLCompilerTool' : {
'AdditionalOptions' : [
'/O2','/Oy','/GL','/GF','/Gm-','/EHsc',
'/MT','/GS','/Gy','/GR-','/Gd',
]
},
'VCLinkerTool' : {
'AdditionalOptions' : ['/OPT:REF','/OPT:ICF','/LTCG']
},
},
}
],
],
},
]
}
```

@@ -80,3 +114,5 @@

Refer to [FreeImage 3.17 docs](http://mirrors.dotsrc.org/pub/exherbo/FreeImage3170.pdf).
## Legal notice

@@ -83,0 +119,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc